/* ===== KC Tendencias — paleta tomada del logo (morado + lila + blanco) ===== */
:root {
  --brand: #794EDE;
  --brand-dark: #5D38B9;
  --brand-soft: #F3EEFF;
  --brand-rgb: 121, 78, 222;
  --lilac: #C9B3FF;
  --night: #1B0F33;
  --night-2: #2A1652;
  --black: #1B0F33;
  --ink: #1c1530;
  --muted: #6d6680;
  --line: #ece8f3;
  --bg: #faf8ff;
  --white: #ffffff;
  --green: #1FAF5A;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(27, 15, 51, .09);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Didot, "Bodoni MT", Georgia, serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --grad: linear-gradient(110deg, #9b7bff 0%, #794EDE 45%, #d6a8ff 100%);
  /* degradado que se repite sin corte: para los que se animan desplazándose */
  --grad-loop: linear-gradient(90deg, #794EDE 0%, #c3a6ff 25%, #794EDE 50%, #c3a6ff 75%, #794EDE 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
input, textarea, select { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--brand); color: #fff; }
.svg-serif { font-family: var(--serif); font-weight: 600; }
.svg-sans { font-family: var(--font); font-weight: 600; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ---------- barra superior ---------- */
.topbar {
  background: var(--night); color: #e9e2ff; font-size: 12.5px; font-weight: 500;
  text-align: center; padding: 7px 12px; letter-spacing: .03em;
}
.topbar .dot { color: var(--lilac); margin: 0 10px; }
@media (max-width: 560px) { .topbar #tagline, .topbar .dot { display: none; } }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 10px 30px -14px rgba(27,15,51,.25); }
.header-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px;
  padding-top: 10px; padding-bottom: 10px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.logo-mark { width: 44px; height: 44px; flex: none; transition: transform .6s var(--ease-out); }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.05); }
.logo-text { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--night); letter-spacing: -.01em; white-space: nowrap; }
.logo-text em { font-style: italic; font-weight: 500; color: var(--brand); }
.search {
  display: flex; align-items: center; gap: 8px; background: #f3f0f9; border-radius: 999px;
  padding: 0 16px; height: 44px; max-width: 560px; width: 100%; justify-self: center;
  border: 1.5px solid transparent; transition: border-color .2s, background .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 5px rgba(var(--brand-rgb), .12); }
.search svg { width: 18px; height: 18px; fill: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; min-width: 0; }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px; border: 0;
  background: var(--night); color: #fff; height: 44px; padding: 0 18px; border-radius: 999px;
  font-weight: 600; transition: background .2s, transform .1s;
}
.cart-btn:hover { background: var(--brand); }
.mayor-btn {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--night); font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: border-color .2s, color .2s, background .2s;
}
.mayor-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.mayor-btn svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.cart-btn:active { transform: scale(.97); }
.cart-btn svg { width: 20px; height: 20px; fill: currentColor; }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
@media (max-width: 760px) {
  .header-row { grid-template-columns: 1fr auto auto; gap: 10px 8px; }
  .mayor-btn { padding: 0 12px; font-size: 14px; gap: 6px; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-text { font-size: 18px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; height: 42px; }
  .cart-btn { padding: 0 14px; }
  .cart-label { display: none; }
}

/* ---------- hero (oscuro, con aurora) ---------- */
/* --mx/--my = mouse (-1..1), --sp = progreso de scroll (0..1) */
.hero {
  --mx: 0; --my: 0; --sp: 0;
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(120% 90% at 80% 0%, #3a1d73 0%, var(--night-2) 40%, var(--night) 75%);
}
.hero-aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(70px); opacity: .85; pointer-events: none; }
.hero-aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.hero-aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 50%; top: 10%; background: #794EDE; animation: aur-a 16s ease-in-out infinite; }
.hero-aurora i:nth-child(2) { width: 36vw; height: 36vw; left: 15%; top: 45%; background: #c06bff; opacity: .55; animation: aur-b 19s ease-in-out infinite; }
.hero-aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 70%; top: 55%; background: #4f6bff; opacity: .45; animation: aur-c 22s ease-in-out infinite; }
@keyframes aur-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-12vw, 8vh) scale(1.15); } }
@keyframes aur-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(14vw, -10vh) scale(.9); } }
@keyframes aur-c { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-8vw, -14vh); } }
/* cuadrícula en perspectiva que se desvanece */
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  translate: calc(var(--mx) * -10px) calc(var(--my) * -10px + var(--sp) * 60px);
}
.hero-spot {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(520px circle at var(--cx, 70%) var(--cy, 40%), rgba(201,179,255,.16), transparent 65%);
}
.hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px;
  padding-top: 40px; padding-bottom: 44px;
}
.hero-copy {
  transform: translate3d(0, calc(var(--sp) * -90px), 0);
  opacity: calc(1 - var(--sp) * 1.4); will-change: transform, opacity;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #e9e2ff;
  backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px 7px 11px; border-radius: 999px;
}
.live { width: 8px; height: 8px; border-radius: 50%; background: #7dffb0; box-shadow: 0 0 0 0 rgba(125,255,176,.7); animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(125,255,176,.6); } 100% { box-shadow: 0 0 0 10px rgba(125,255,176,0); } }

/* título cinético: cada línea sube desde una máscara; la última palabra rota */
.hero h1 { margin: 0; font-size: clamp(36px, 4.8vw, 62px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.kinetic .line { display: block; overflow: hidden; padding-bottom: .08em; }
.kinetic .line > span { display: inline-block; }
.rotator {
  position: relative; display: inline-block; height: 1.12em; vertical-align: bottom; overflow: hidden;
  transition: width .6s var(--ease-io); font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em;
}
.rotator b {
  position: absolute; left: 0; top: 0; font-weight: inherit; white-space: nowrap; padding-right: .1em;
  background: var(--grad-loop); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(110%) rotate(6deg); transform-origin: 0 100%; opacity: 0;
  transition: transform .7s var(--ease-io), opacity .4s;
  animation: grad-move 5s linear infinite;
}
.rotator b.in { position: relative; transform: none; opacity: 1; }
.rotator b.out { transform: translateY(-110%) rotate(-4deg); opacity: 0; }
@keyframes grad-move { to { background-position: -100% 0; } }
.hero-sub { margin: 14px 0 0; color: #cfc4ec; max-width: 480px; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-lg { height: 54px; padding: 0 26px; border-radius: 999px; font-size: 16px; }
.btn-lg svg { width: 18px; height: 18px; fill: currentColor; }
.hero .btn-primary.btn-lg { background: #fff; color: var(--night); box-shadow: 0 14px 34px -10px rgba(201,179,255,.7); }
.hero .btn-primary.btn-lg:hover { background: var(--lilac); }
.btn.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn.btn-ghost:hover { background: #fff; color: var(--night); }
.hero-social { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.hero-social span { font-size: 13px; font-weight: 600; color: #b9acdf; }
.hero-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; transition: background .2s, transform .2s;
}
.hero-social a:hover { background: var(--brand); transform: translateY(-3px) rotate(-6deg); }
.hero-social svg { width: 20px; height: 20px; fill: currentColor; }
.hero-social svg.ig { fill: none; stroke: currentColor; stroke-width: 2; }
.hero-social svg.ig .dot { fill: currentColor; stroke: none; }
.hero-perks {
  list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 14px; color: #b9acdf; font-weight: 500;
}
.hero-perks li { display: flex; align-items: baseline; gap: 6px; }
.hero-perks li::before { content: "✦"; color: var(--lilac); font-size: 11px; align-self: center; }
.hero-perks strong { color: #fff; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* logo del banner */
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-logo {
  width: clamp(170px, 18vw, 230px); aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--brand);
  display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 30px 80px -10px rgba(121,78,222,.8);
  translate: calc(var(--mx) * 12px) calc(var(--my) * 10px + var(--sp) * -30px);
  animation: core-float 6s ease-in-out infinite;
}
.hero-logo svg { width: 88%; height: 88%; }
@keyframes core-float { 0%,100% { transform: translateY(-5px); } 50% { transform: translateY(6px); } }
@keyframes spin { to { rotate: 360deg; } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 36px; }
  .hero-visual { display: none; }
}
@media (max-width: 560px) {
  .hero-inner { padding-top: 22px; padding-bottom: 26px; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .hero-sub { font-size: 14px; margin-top: 12px; }
  .hero-actions { margin-top: 16px; gap: 10px; }
  .hero-actions .btn-lg { flex: 1; height: 48px; padding: 0 12px; font-size: 14.5px; white-space: nowrap; gap: 6px; }
  .hero-actions .hero-mayor { flex-basis: 100%; }
  .hero-social { margin-top: 14px; }
  .hero-perks { margin-top: 12px; font-size: 12.5px; gap: 6px 16px; }
  .hero-perks strong { font-size: 16px; }
}

/* ---------- cintas (las mueve immersive.js según el scroll) ---------- */
.ribbon { position: relative; overflow: hidden; pointer-events: none; background: var(--bg); padding: 0 0 6px; }
.ribbon-band { overflow: hidden; }
.ribbon-solid { background: var(--grad-loop); background-size: 200% 100%; padding: 12px 0; animation: grad-move 8s linear infinite; }
.ribbon-outline { padding: 6px 0 0; }
.ribbon-track {
  display: flex; align-items: center; gap: 26px; width: max-content; padding-right: 26px; white-space: nowrap;
  will-change: transform; animation: marquee 50s linear infinite;
}
.ribbon-track[data-dir="-1"] { animation-direction: reverse; animation-duration: 70s; }
/* cuando immersive.js toma el control, la animación CSS se apaga */
.ribbon.js .ribbon-track { animation: none; }
.ribbon-solid .ribbon-track { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .3em; text-transform: uppercase; }
.ribbon-solid .ribbon-track i { font-style: normal; color: var(--night); letter-spacing: 0; }
.ribbon-outline .ribbon-track {
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(36px, 5vw, 64px); line-height: 1.1;
  color: transparent; -webkit-text-stroke: 1.4px rgba(var(--brand-rgb), .45);
}
.ribbon-outline .ribbon-track span:nth-of-type(3n+1) { color: rgba(var(--brand-rgb), .1); }
.ribbon-outline .ribbon-track i { font-style: normal; font-size: .5em; color: var(--brand); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 560px) { .ribbon-solid .ribbon-track { font-size: 11.5px; gap: 16px; padding-right: 16px; } }

/* barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: var(--grad); box-shadow: 0 0 12px rgba(var(--brand-rgb), .6);
}
#catalogo { scroll-margin-top: 90px; }
@media (max-width: 1023px) { #catalogo { scroll-margin-top: 130px; } }
@media (max-width: 760px) { #catalogo { scroll-margin-top: calc(var(--header-h, 117px) + 64px); } }

/* ---------- categorías (chips móvil) ---------- */
.cat-bar {
  position: sticky; top: 65px; z-index: 20; background: rgba(250,248,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: none;
}
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 600; white-space: nowrap; scroll-snap-align: start;
  transition: all .2s;
}
.chip.active { background: var(--night); border-color: var(--night); color: #fff; }
@media (max-width: 1023px) { .cat-bar { display: block; top: var(--header-h, 65px); } }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding-top: 28px; padding-bottom: 64px; }
@media (max-width: 1023px) { .layout { grid-template-columns: 1fr; padding-top: 18px; } .sidebar { display: none; } }

.sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar h2 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted);
  margin: 0 0 12px; font-weight: 700;
}
.sidebar ul { list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.sidebar li button {
  position: relative; width: 100%; text-align: left; border: 0; background: none; padding: 11px 14px; font-size: 15px;
  font-weight: 500; border-radius: 10px; display: flex; align-items: center; gap: 10px; transition: background .2s, color .2s, padding-left .25s;
}
.sidebar li button::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none;
  transform: scale(0); transition: transform .3s var(--ease-out);
}
.sidebar li button:hover { background: var(--brand-soft); color: var(--brand-dark); }
.sidebar li button:hover::before { transform: scale(1); }
.sidebar li button.active { background: var(--night); color: #fff; font-weight: 600; }
.sidebar li button.active::before { transform: scale(1); background: var(--lilac); }

.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-head h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.results-head h2::after { content: ""; display: block; width: 42px; height: 4px; background: var(--grad); margin-top: 6px; border-radius: 2px; }
#resultsInfo { color: var(--muted); font-size: 14px; }

/* ---------- grid de productos ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.loading, .empty { grid-column: 1 / -1; text-align: center; padding: 60px 16px; color: var(--muted); }
.empty .btn { margin-top: 8px; }

.card {
  position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.card-media { position: relative; border: 0; padding: 0; background: #f3f0f9; aspect-ratio: 1 / 1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; z-index: 1; }
.badges.static { position: static; flex-direction: row; flex-wrap: wrap; margin: 4px 0 14px; }
.tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 9px;
  border-radius: 999px; color: #fff; line-height: 1.2; box-shadow: 0 2px 8px rgba(27,15,51,.15);
}
.tag-oferta { background: #FF3D7F; }
.tag-top { background: var(--night); }
.tag-nuevo { background: #0E9F6E; }
.tag-reco { background: var(--brand); }
.tag-excl { background: linear-gradient(135deg, #C9A227, #8A6D12); }
.tag-custom { background: #fff; color: var(--night); border: 1.5px solid var(--night); }
.discount {
  position: absolute; top: 10px; right: 10px; z-index: 1; background: var(--night); color: #fff; font-weight: 800;
  font-size: 12.5px; padding: 5px 9px; border-radius: 999px;
}

.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card-cat { margin: 0 0 2px; font-size: 11px; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.card-title {
  margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.3; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price .now { font-size: 18px; font-weight: 800; color: var(--night); }
.price s { color: var(--muted); font-size: 13.5px; }
.card-actions { margin-top: 10px; height: 42px; }
/* dos precios en una fila: divisas (billete) a la izquierda y referencia en Bs al borde derecho */
.prices { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.prices .price { margin-top: 0; align-items: center; gap: 4px 6px; flex-wrap: nowrap; }
.price-bs { margin-left: auto; }
.card .prices.two s { display: none; }
.price-bs .now { font-size: 16px; color: var(--ink); }
.cur { flex: none; width: 26px; height: 16px; display: inline-block; vertical-align: -3px; }
.cur-bs {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 3px;
  background: #F2A900; color: var(--night); font-size: 9.5px; font-weight: 800; letter-spacing: .02em; line-height: 1;
  box-shadow: inset 0 0 0 1.5px rgba(27,15,51,.12);
}
.prices.big { margin: 6px 0 0; gap: 8px; }
.prices-save { flex-basis: 100%; }
.prices.big .cur { width: 34px; height: 21px; }
.prices.big .cur-bs { font-size: 12px; }
.prices.big .price-bs .now { font-size: 21px; }
@media (max-width: 760px) {
  .cur { width: 22px; height: 14px; }
  .cur-bs { font-size: 8.5px; }
  .price-bs .now { font-size: 13.5px; }
}
/* precio al mayor (opcional desde Ajustes): se consulta por WhatsApp */
.ask-mayor {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; align-self: flex-start;
  font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s;
}
.ask-mayor svg { width: 15px; height: 15px; fill: var(--green); flex: none; }
.ask-mayor u { color: var(--green); font-weight: 700; text-underline-offset: 2px; }
.ask-mayor:hover { color: var(--ink); }
.pm-wholesale {
  margin: 14px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1.5px dashed var(--brand); border-radius: 12px; padding: 12px 14px; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.pm-wholesale:hover { border-color: var(--green); background: #effaf3; }
.pm-wholesale-text { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.pm-wholesale-text b { display: block; color: var(--ink); font-size: 14.5px; }
.pm-wholesale-btn { flex: none; background: var(--green); color: #fff; font-weight: 700; font-size: 13.5px; padding: 9px 14px; border-radius: 999px; }
/* aviso: precios con promo por pago en divisas */
.price-note {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 18px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px;
  padding: 10px 14px; font-size: 14px; color: var(--ink);
}
.price-note b {
  background: var(--night); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
}
.price-note.small { margin: 12px 0 0; padding: 8px 12px; font-size: 12.5px; gap: 4px 8px; }
.price-note.small b { font-size: 9.5px; }
.drawer-foot .price-note.small { margin: 0 0 12px; }
@media (max-width: 760px) {
  .ask-mayor { font-size: 11px; gap: 4px; }
  .ask-mayor svg { width: 13px; height: 13px; }
  .price-note { font-size: 13px; padding: 9px 12px; }
}

@media (max-width: 760px) {
  .card-body { padding: 10px 10px 12px; }
  .card-title { font-size: 13.5px; }
  .price .now { font-size: 16px; }
  .price s { font-size: 12px; }
  .tag { font-size: 9.5px; padding: 3px 7px; }
  .badges { top: 7px; left: 7px; }
  .discount { top: 7px; right: 7px; font-size: 11px; }
  .card-actions { height: 38px; }
}

/* ---------- botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px;
  font-weight: 700; padding: 0 18px; height: 46px; transition: background .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 22px -6px rgba(var(--brand-rgb), .55); }
.btn-outline { background: #fff; border: 1.5px solid var(--night); color: var(--night); }
.btn-outline:hover { background: var(--night); color: #fff; }
/* "Agregar": un relleno morado sube desde abajo al pasar el mouse */
.btn-add { width: 100%; height: 100%; background: var(--night); color: #fff; font-size: 14px; overflow: hidden; isolation: isolate; }
.btn-add::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  transform: translateY(101%); transition: transform .45s var(--ease-io);
}
.btn-add:hover::before { transform: none; }
.btn-wa { width: 100%; background: var(--green); color: #fff; height: 52px; font-size: 16px; }
.btn-wa:hover { background: #17924a; }
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; }
.btn-link { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13.5px; padding: 8px; }
a.btn { text-decoration: none; }
.magnetic { transition: translate .35s var(--ease-out), background .2s, color .2s, box-shadow .2s, transform .15s; }

.stepper {
  display: inline-flex; align-items: center; border: 1.5px solid var(--night); border-radius: 12px; height: 46px; overflow: hidden;
}
.stepper button { border: 0; background: #fff; width: 44px; height: 100%; font-size: 20px; font-weight: 600; }
.stepper button:hover { background: var(--brand-soft); color: var(--brand); }
.stepper span { min-width: 34px; text-align: center; font-weight: 700; }
.stepper.small { height: 100%; width: 100%; justify-content: space-between; border-color: var(--brand); }
.cart-line .stepper.small { height: 34px; width: auto; }
.cart-line .stepper.small button { width: 34px; font-size: 17px; }

/* ---------- overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(27,15,51,.55); backdrop-filter: blur(3px); display: flex; align-items: center;
  justify-content: center; padding: 20px; opacity: 0; transition: opacity .25s;
}
.overlay.open { opacity: 1; }
.close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: #fff; font-size: 26px; line-height: 1; display: grid; place-items: center; z-index: 2;
  box-shadow: 0 2px 8px rgba(27,15,51,.15); transition: background .2s, color .2s, transform .3s var(--ease-out);
}
.close:hover { background: var(--brand); color: #fff; transform: rotate(90deg); }

.modal {
  position: relative; background: #fff; border-radius: 22px; width: 100%; max-width: 900px; max-height: 92vh;
  overflow: auto; display: grid; grid-template-columns: 1.05fr 1fr;
  transform: translateY(24px) scale(.97); transition: transform .4s var(--ease-out);
}
.overlay.open .modal { transform: none; }
.pm-gallery { background: #f3f0f9; padding: 0 0 12px; }
.pm-zoom { overflow: hidden; }
.pm-zoom img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .35s var(--ease-out); }
.pm-thumbs { display: flex; gap: 8px; padding: 12px 12px 0; overflow-x: auto; }
.pm-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; width: 60px; height: 60px; flex: none; background: none; }
.pm-thumbs button.active { border-color: var(--brand); }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { padding: 32px 28px 28px; display: flex; flex-direction: column; }
.pm-cat { margin: 0; color: var(--brand); font-weight: 700; text-transform: uppercase; font-size: 12.5px; letter-spacing: .12em; }
.pm-info h2 { margin: 6px 0 6px; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.prices.big .now { font-size: 28px; }
.prices.big s { font-size: 16px; }
.price .save { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; }
.pm-desc { color: #4a4360; white-space: pre-line; margin: 14px 0 22px; }
.pm-buy { display: flex; gap: 10px; margin-top: auto; }
.pm-buy .btn { flex: 1; }
/* el contenido del detalle entra en cascada */
.overlay.open .pm-info > * { animation: rise .55s var(--ease-out) backwards; }
.overlay.open .pm-info > :nth-child(2) { animation-delay: .05s; }
.overlay.open .pm-info > :nth-child(3) { animation-delay: .1s; }
.overlay.open .pm-info > :nth-child(4) { animation-delay: .15s; }
.overlay.open .pm-info > :nth-child(n+5) { animation-delay: .2s; }
@media (max-width: 760px) {
  .overlay:not(.drawer-overlay) { padding: 0; align-items: flex-end; }
  .modal { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 94vh; transform: translateY(60px); }
  .pm-zoom img { aspect-ratio: 4 / 3.4; }
  .pm-info { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .pm-info h2 { font-size: 20px; }
  .prices.big .now { font-size: 24px; }
  .pm-buy { position: sticky; bottom: 0; background: #fff; padding-top: 8px; }
}

/* ---------- carrito ---------- */
.drawer-overlay { justify-content: flex-end; align-items: stretch; padding: 0; }
.drawer {
  position: relative; background: #fff; width: 100%; max-width: 440px; height: 100%; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease-io);
}
.overlay.open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.drawer-head .close { position: static; box-shadow: none; background: #f3f0f9; }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 18px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: #fff; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 17px; }
.total-row strong { font-size: 24px; color: var(--night); }
.total-label { font-weight: 800; letter-spacing: .04em; color: var(--night); display: inline-flex; align-items: center; gap: 7px; }
.total-label small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.total-bs { margin-top: -4px; }
.total-bs strong { font-size: 19px; color: var(--ink); }
.cl-unit .cur { width: 20px; height: 13px; vertical-align: -2px; }
.cl-unit .cur-bs { font-size: 8px; }
.cl-bs { font-size: 12px; color: var(--muted); margin-top: -8px; }
#checkout { display: grid; gap: 8px; }
#checkout input, #checkout textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; font-size: 15px; resize: vertical; outline: 0;
}
#checkout input:focus, #checkout textarea:focus { border-color: var(--brand); }
#checkout .invalid { border-color: #FF3D7F; background: #fff0f5; }

.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.overlay.open .cart-line { animation: slide-in .5s var(--ease-out) backwards; }
.overlay.open .cart-line:nth-child(2) { animation-delay: .05s; }
.overlay.open .cart-line:nth-child(3) { animation-delay: .1s; }
.overlay.open .cart-line:nth-child(n+4) { animation-delay: .15s; }
@keyframes slide-in { from { opacity: 0; transform: translateX(30px); } }
.cart-line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #f3f0f9; }
.cl-name { margin: 0; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.cl-unit { margin: 2px 0 8px; color: var(--muted); font-size: 13px; }
.cl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cl-remove { border: 0; background: none; color: #e0245e; font-size: 12.5px; font-weight: 600; text-decoration: underline; padding: 0; }
.cl-remove:hover { color: #b0174a; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart-empty svg { width: 56px; height: 56px; fill: #ddd6ea; }

/* ---------- botón flotante móvil ---------- */
.fab {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; justify-content: space-between; border: 0; background: var(--night); color: #fff;
  height: 54px; border-radius: 16px; padding: 0 20px; font-weight: 600; box-shadow: 0 12px 30px rgba(27,15,51,.4);
}
.fab strong { color: var(--lilac); }
@media (max-width: 760px) {
  .fab:not([hidden]) { display: flex; animation: rise .5s var(--ease-out); }
  body:has(.fab:not([hidden])) .footer { padding-bottom: 90px; }
}

/* ---------- botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s, bottom .25s, translate .35s var(--ease-out); text-decoration: none;
}
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37,211,102,.55); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366;
  z-index: -1; animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--night); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.wa-float:hover .wa-float-tip { opacity: 1; transform: translateY(-50%); }
@media (max-width: 760px) {
  .wa-float { width: 54px; height: 54px; right: 16px; }
  .wa-float-tip { display: none; }
  body:has(.fab:not([hidden])) .wa-float { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   PANTALLA DE CARGA (motion graphics)
   1. el anillo se dibuja y un punto orbita
   2. "KC" se traza con contorno y luego se rellena
   3. TENDENCIAS entra letra por letra; el contador sube a 100
   4. salida: el logo se encoge y tres telones suben en cascada
   ========================================================= */
.preloader { position: fixed; inset: 0; z-index: 100; pointer-events: auto; }
.pl-panel {
  position: absolute; inset: 0 0 -14vh; border-radius: 0 0 50% 50% / 0 0 14vh 14vh;
  transition: transform 1s var(--ease-io);
}
.pl-p3 { background: var(--lilac); }
.pl-p2 { background: var(--brand); }
.pl-p1 { background: var(--night); color: #fff; display: grid; place-items: center; overflow: hidden; }
.pl-grid {
  position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(201,179,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(201,179,255,.12) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 60%);
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 60%);
  animation: grid-zoom 3s var(--ease-out) both;
}
@keyframes grid-zoom { from { transform: scale(1.4); opacity: 0; } to { transform: none; opacity: .35; } }
.pl-stage { position: relative; display: grid; justify-items: center; gap: 14px; margin-top: -6vh; transition: transform .7s var(--ease-io), opacity .5s; }
.pl-logo { width: min(210px, 52vw); height: auto; overflow: visible; }
.pl-ring { fill: none; stroke: var(--lilac); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; transform-origin: 60px 60px; rotate: -90deg; animation: draw 1.2s var(--ease-io) .1s forwards; }
.pl-ring-2 { stroke: rgba(201,179,255,.35); stroke-width: .8; stroke-dasharray: .02 .025; animation: draw 1.6s var(--ease-io) .3s forwards, spin 20s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pl-orbit { transform-origin: 60px 60px; fill: #fff; opacity: 0; animation: fade-in .3s 1.1s forwards, spin 2.2s linear 1.1s infinite; }
.pl-orbit circle { filter: drop-shadow(0 0 4px #fff); }
.pl-kc {
  fill: transparent; stroke: #fff; stroke-width: .7; stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: draw 1.5s var(--ease-io) .45s forwards, kc-fill .6s ease 1.5s forwards;
}
@keyframes kc-fill { to { fill: #fff; stroke-width: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.pl-word { display: flex; gap: .55em; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--lilac); overflow: hidden; }
.pl-word span { display: inline-block; transform: translateY(120%); animation: letter-up .6s var(--ease-out) forwards; animation-delay: calc(1.2s + var(--n, 0) * 55ms); }
.pl-word span:nth-child(1) { --n: 0; } .pl-word span:nth-child(2) { --n: 1; } .pl-word span:nth-child(3) { --n: 2; }
.pl-word span:nth-child(4) { --n: 3; } .pl-word span:nth-child(5) { --n: 4; } .pl-word span:nth-child(6) { --n: 5; }
.pl-word span:nth-child(7) { --n: 6; } .pl-word span:nth-child(8) { --n: 7; } .pl-word span:nth-child(9) { --n: 8; }
.pl-word span:nth-child(10) { --n: 9; }
@keyframes letter-up { to { transform: none; } }
.pl-foot {
  /* el telón mide 14vh más que la pantalla (borde curvo): el pie se sube lo mismo */
  position: absolute; left: 0; right: 0; bottom: calc(14vh + max(28px, env(safe-area-inset-bottom))); padding: 0 28px;
  display: flex; align-items: center; gap: 18px; transition: opacity .3s;
}
.pl-line { flex: 1; height: 1px; background: rgba(201,179,255,.2); overflow: hidden; }
.pl-line i { display: block; height: 100%; width: 100%; background: var(--lilac); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; transition: transform .2s linear; }
.pl-count { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 6vw, 64px); line-height: 1; font-variant-numeric: tabular-nums; color: #fff; min-width: 3.2ch; text-align: right; }
.pl-count b { font-weight: 500; }
/* salida */
.preloader.done { pointer-events: none; }
.preloader.done .pl-stage { transform: scale(.6); opacity: 0; }
.preloader.done .pl-foot { opacity: 0; }
.preloader.done .pl-p1 { transform: translateY(-115%); transition-delay: .25s; }
.preloader.done .pl-p2 { transform: translateY(-115%); transition-delay: .38s; }
.preloader.done .pl-p3 { transform: translateY(-115%); transition-delay: .5s; }
body:has(.preloader:not(.done)) { overflow: hidden; }

/* ---------- animaciones de entrada ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes line-up { from { transform: translateY(110%) rotate(4deg); } to { transform: none; } }
@keyframes grow-line { from { width: 0; } to { width: 42px; } }
@keyframes blur-in { from { opacity: 0; filter: blur(14px); transform: scale(.9); } to { opacity: 1; filter: none; transform: none; } }

.hero .kinetic .line > span { transform: translateY(110%); }
body.ready .header { animation: drop .7s var(--ease-out) .5s backwards; }
body.ready .hero-kicker { animation: rise .7s var(--ease-out) .55s backwards; }
body.ready .hero .kinetic .line > span { transform: none; animation: line-up 1s var(--ease-io) backwards; }
body.ready .hero .kinetic .line:nth-child(1) > span { animation-delay: .6s; }
body.ready .hero .kinetic .line:nth-child(2) > span { animation-delay: .72s; }
body.ready .hero-sub { animation: rise .8s var(--ease-out) .9s backwards; }
body.ready .hero-actions { animation: rise .8s var(--ease-out) 1s backwards; }
body.ready .hero-social, body.ready .hero-perks { animation: rise .8s var(--ease-out) 1.1s backwards; }
body.ready .hero-visual { animation: blur-in 1.3s var(--ease-out) .7s backwards; }
.chips.intro .chip { animation: rise .5s var(--ease-out) backwards; animation-delay: calc(.9s + var(--i, 0) * 50ms); }
body.ready .wa-float { animation: pop .6s var(--ease-out) 1.4s backwards; }

/* aparición al hacer scroll: las tarjetas se destapan con una cortina */
.reveal:not(.in) { opacity: 0; }
.reveal.in { animation: rise .75s var(--ease-out) backwards; animation-delay: var(--d, 0ms); }
.card.reveal.in { animation: card-in .9s var(--ease-io) backwards; animation-delay: var(--d, 0ms); }
.card.reveal.in .card-media img { animation: img-in 1.2s var(--ease-out) backwards; animation-delay: var(--d, 0ms); }
@keyframes card-in { from { opacity: 0; clip-path: inset(100% 0 0 0 round var(--radius)); transform: translateY(40px); } to { opacity: 1; clip-path: inset(0 0 0 0 round var(--radius)); transform: none; } }
@keyframes img-in { from { transform: scale(1.35); } to { transform: none; } }
.results-head.in h2::after { animation: grow-line .6s var(--ease-out) .35s backwards; }

/* tarjetas: se elevan, la foto hace zoom y un brillo la cruza */
@media (hover: hover) {
  .card { transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out), border-color .4s; }
  .card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px -12px rgba(var(--brand-rgb), .35); border-color: rgba(var(--brand-rgb), .3); }
  .card-media img { transition: transform .7s var(--ease-out); }
  .card:hover .card-media img { transform: scale(1.09); }
  .card-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  }
  .card:hover .card-media::after { transform: translateX(130%) skewX(-18deg); transition: transform .85s ease; }
  .card-title { transition: color .2s; }
  .card:hover .card-title { color: var(--brand); }
  .chip:hover { transform: translateY(-2px); border-color: var(--brand); }
  .footer-links a { transition: color .2s, transform .2s; display: inline-block; }
  .footer-links a:hover { transform: translateY(-2px); }
}
/* tarjetas con inclinación 3D y reflejo que sigue al mouse */
@media (hover: hover) and (pointer: fine) {
  .card::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0;
    background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.4), transparent 45%);
    transition: opacity .3s;
  }
  .card.tilting {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px);
    transition: transform .12s linear, box-shadow .35s var(--ease-out), border-color .35s;
  }
  .card.tilting::after { opacity: 1; }
  .pm-zoom { cursor: zoom-in; }
  .pm-zoom.zooming img { transform: scale(1.9); }
}
.cart-btn.bump { animation: bump .55s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.18) rotate(-6deg); } 70% { transform: scale(.95); } 100% { transform: scale(1); } }

/* al agregar: la foto vuela en arco hasta el carrito */
.fly {
  position: fixed; z-index: 120; pointer-events: none; border-radius: 14px; object-fit: cover;
  box-shadow: 0 16px 40px -8px rgba(var(--brand-rgb), .6); will-change: transform, opacity;
}
.fly-burst { position: fixed; z-index: 121; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.fly-burst i {
  position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  animation: burst .6s var(--ease-out) forwards;
}
@keyframes burst { from { transform: rotate(var(--a)) translateX(0) scale(1); opacity: 1; } to { transform: rotate(var(--a)) translateX(34px) scale(0); opacity: 0; } }

/* ---------- cursor personalizado (solo mouse) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor .cursor { display: block; }
  .cursor { position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none; }
  .cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--brand); }
  .cursor-ring {
    width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(var(--brand-rgb), .55);
    display: grid; place-items: center; transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s, border-color .3s;
  }
  .cursor-ring em { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; opacity: 0; transition: opacity .2s; letter-spacing: .04em; }
  .cursor.hover .cursor-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(var(--brand-rgb), .12); }
  .cursor.label .cursor-ring { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: var(--brand); border-color: var(--brand); }
  .cursor.label .cursor-ring em { opacity: 1; }
  .cursor.label .cursor-dot, .cursor.hover .cursor-dot { opacity: 0; }
  .cursor.down .cursor-ring { scale: .85; }
  .cursor.hidden { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal:not(.in) { opacity: 1; }
  .hero .kinetic .line > span, .pl-word span { transform: none; }
  .pl-kc { fill: #fff; stroke-dashoffset: 0; }
  .pl-ring { stroke-dashoffset: 0; }
  .preloader.done { opacity: 0; }
  .rotator b { transition: none; }
}

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--night); color: #d9d0f3; padding: 56px 0 32px; }
.footer-glow { position: absolute; left: 50%; top: -40%; width: 70vw; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, rgba(121,78,222,.45), transparent 60%); pointer-events: none; }
.footer-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-big {
  margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: clamp(48px, 11vw, 150px); line-height: .95;
  letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.2px rgba(201,179,255,.4);
  background: var(--grad-loop); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  animation: grad-move 8s linear infinite;
}
.footer-big em { font-style: italic; font-weight: 500; }
.footer-logo { width: 64px; height: 64px; color: var(--lilac); }
.footer-claim { margin: 0; font-size: 14px; color: #b9acdf; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-weight: 600; text-decoration: none; color: #fff; }
.footer-links a:hover { color: var(--lilac); }
.copy { margin: 0; color: #9a8fbd; font-size: 13px; }
.admin-link { color: #9a8fbd; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--night); color: #fff;
  padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none;
  transition: all .3s var(--ease-out); z-index: 70; max-width: calc(100% - 32px); text-align: center;
  box-shadow: 0 10px 30px -8px rgba(27,15,51,.5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 761px) { .toast { bottom: 28px; } }

:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .5); outline-offset: 2px; }

/* =========================================================
   TELÉFONO: rendimiento, toques y lectura
   ========================================================= */
/* animaciones de fondo en pausa mientras su sección no se ve (lo marca immersive.js) */
.is-off .hero-aurora i, .is-off .hero-logo, .is-off .live,
.is-off.ribbon-solid, .is-off .footer-big { animation-play-state: paused; }

/* asa de la hoja inferior del detalle (solo celular) */
.sheet-handle { display: none; }

@media (max-width: 760px) {
  /* iPhone acerca la pantalla al tocar campos con letra menor de 16 px */
  .search input, #checkout input, #checkout textarea { font-size: 16px; }

  /* aurora más liviana: menos desenfoque, sin mezcla de capas, dos manchas */
  .hero-aurora { inset: -10%; filter: blur(42px); opacity: .9; }
  .hero-aurora i { mix-blend-mode: normal; }
  .hero-aurora i:nth-child(1) { width: 95vw; height: 95vw; left: 25%; top: -15%; }
  .hero-aurora i:nth-child(2) { width: 75vw; height: 75vw; left: -25%; top: 45%; }
  .hero-aurora i:nth-child(3) { display: none; }
  .hero-grid { background-size: 40px 40px; }
  .hero-kicker { font-size: 10.5px; letter-spacing: .1em; padding: 6px 12px 6px 10px; margin-bottom: 14px; }
  .hero-social a { width: 44px; height: 44px; }

  /* los desenfoques de fondo cuestan mucho en teléfonos: fondos sólidos */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.98); }
  .cat-bar { backdrop-filter: none; background: var(--bg); }
  .overlay { backdrop-filter: none; }

  /* objetivos de toque de al menos 40-44 px */
  .close { width: 44px; height: 44px; }
  .stepper button { width: 48px; }
  .card-actions { height: 40px; }
  .cart-line .stepper.small { height: 40px; }
  .cart-line .stepper.small button { width: 40px; }
  .cl-remove { padding: 6px 0; }
  .chip { padding: 9px 16px; }

  /* cintas: en el celular solo la franja delgada, para llegar antes a los productos */
  .ribbon-outline { display: none; }
  .ribbon { padding-bottom: 0; }
  .ribbon-solid { padding: 9px 0; }
  .topbar { font-size: 11.5px; padding: 6px 10px; }
  .layout { padding-top: 14px; padding-bottom: 40px; }
  .results-head { margin-bottom: 12px; }
  .results-head h2 { font-size: 21px; }
  .footer { padding: 44px 0 28px; }

  /* detalle como hoja inferior que se cierra deslizando hacia abajo */
  .sheet-handle {
    display: block; position: sticky; top: 0; z-index: 3; height: 0; grid-column: 1 / -1;
  }
  .sheet-handle::before {
    content: ""; position: absolute; left: 50%; top: 8px; width: 42px; height: 5px; margin-left: -21px;
    border-radius: 999px; background: rgba(27,15,51,.25);
  }
  .modal { overscroll-behavior: contain; max-height: 94dvh; }
  .modal.dragging { transition: none; }
  .modal .close { top: 14px; }
}

/* Botón "Al mayor" solo con ícono en teléfonos muy angostos */
@media (max-width: 360px) { .mayor-btn { width: 44px; padding: 0; justify-content: center; } .mayor-btn span { display: none; } }
