/* MN Technology — tienda web. Colores del sistema MN Tech: violeta MN (brand), azul MN (accent)
   y tinta violeta profunda para las zonas oscuras. Sigue el tema del equipo; el botón de la cabecera lo fija (tema.js). */
:root {
  --bg: #f6f5fb;
  --surface: #ffffff;
  --surface-2: #f1effa;
  /* Fondo de las fotos: blanco en los dos temas, como las fotos que guarda «Quitar fondo» (blanco con marcas MN tenues): se funden con el recuadro. */
  --foto-fondo: #fff;
  --line: #e6e3f1;
  --line-strong: #d6d1ea;
  --ink: #15122b;
  --muted: #625d7d;
  --faint: #8b86a6;
  --brand: #7c3aed;
  --brand-2: #8b5cf6;
  --brand-soft: rgb(124 58 237 / 0.09);
  --brand-ink: #6d28d9;
  --accent: #3b82f6;
  --ok: #047857;
  --ok-bg: #e7f8f0;
  --low: #b45309;
  --low-bg: #fff4e0;
  --night: #0c0a18;
  --night-2: #161328;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 45%, #3b82f6 100%);
  --glow: 0 12px 30px -12px rgb(124 58 237 / 0.55);
  --shadow: 0 1px 2px rgb(21 18 43 / 0.04), 0 12px 32px -20px rgb(21 18 43 / 0.28);
  --radius: 16px;
  --header: 68px;
  color-scheme: light;
}
/* Oscuro: lo pide el equipo (sin elección guardada) o el cliente con el botón de la cabecera (tema.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0a18;
    --surface: #161425;
    --surface-2: #1c1930;
    --line: #262340;
    --line-strong: #363350;
    --ink: #f4f3fa;
    --muted: #a7a2c2;
    --faint: #7d7899;
    --brand: #8b5cf6;
    --brand-2: #a78bfa;
    --brand-soft: rgb(139 92 246 / 0.16);
    --brand-ink: #c4b5fd;
    --ok: #34d399;
    --ok-bg: rgb(52 211 153 / 0.12);
    --low: #fbbf24;
    --low-bg: rgb(251 191 36 / 0.12);
    --shadow: 0 1px 0 rgb(255 255 255 / 0.03) inset, 0 12px 32px -18px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0a18;
  --surface: #161425;
  --surface-2: #1c1930;
  --line: #262340;
  --line-strong: #363350;
  --ink: #f4f3fa;
  --muted: #a7a2c2;
  --faint: #7d7899;
  --brand: #8b5cf6;
  --brand-2: #a78bfa;
  --brand-soft: rgb(139 92 246 / 0.16);
  --brand-ink: #c4b5fd;
  --ok: #34d399;
  --ok-bg: rgb(52 211 153 / 0.12);
  --low: #fbbf24;
  --low-bg: rgb(251 191 36 / 0.12);
  --shadow: 0 1px 0 rgb(255 255 255 / 0.03) inset, 0 12px 32px -18px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
svg.ico { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#app { outline: none; min-height: 60vh; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-weight: 700; font-size: 14px;
  color: #fff; background: var(--gradient); box-shadow: var(--glow); text-decoration: none; white-space: nowrap;
  transition: filter .15s, background .15s, border-color .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled, .btn.disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.btn-block { width: 100%; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn-outline:hover { filter: none; border-color: var(--brand); color: var(--brand-ink); }
.btn-light { background: #fff; color: #3b1a8f; box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.5); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.55); box-shadow: none; }
.btn-ghost-light:hover { filter: none; background: rgb(255 255 255 / 0.1); }
.btn-wa { background: #25d366; color: #05301a; box-shadow: none; }
.link-more { border: 0; background: none; padding: 0; cursor: pointer; color: var(--brand-ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* ---------- Cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner { max-width: 1320px; margin: 0 auto; padding: 0 16px; height: var(--header); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.mark { width: 38px; height: 38px; border-radius: 12px; background: var(--gradient); box-shadow: var(--glow); display: grid; place-items: center; }
.mark svg { width: 24px; height: 24px; }
/* Monograma MN de circuito (del logo de la marca) junto al nombre, en cabecera y pie. */
.logo-mn { display: block; flex-shrink: 0; width: 62px; height: 40px; object-fit: contain; }
.brand-text { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-text span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); }
.search { position: relative; flex: 1; min-width: 0; margin: 0; }
.search-icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input, .input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input { padding-left: 42px; background: var(--surface-2); border-color: transparent; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
.search input:focus, .input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface); }
::placeholder { color: var(--faint); }
select {
  height: 44px; padding: 0 36px 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); cursor: pointer; font-weight: 600;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b86a6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  appearance: none; -webkit-appearance: none;
}
select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Inicio: portada ---------- */



.section { padding-top: 56px; }
.home-cats { padding-top: 26px; }
.home-cats .section-head { margin-bottom: 14px; }
main > .section:last-child, #app > .section:last-child { padding-bottom: 64px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2, .section h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; font-weight: 800; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tile {
  height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--brand); }
.tile-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; background: var(--gradient); box-shadow: var(--glow); }
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tile-name { font-weight: 700; line-height: 1.3; }
.tile-count { color: var(--muted); font-size: 13px; }

.arrows { display: flex; gap: 8px; }
.arrow-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.arrow-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.arrow-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel { list-style: none; margin: 0; padding: 4px 2px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(340px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.mini { scroll-snap-align: start; }
.mini-btn { width: 100%; height: 100%; display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; box-shadow: var(--shadow); transition: border-color .15s; }
.mini-btn:hover { border-color: var(--brand); }
.mini-photo { position: relative; width: 96px; aspect-ratio: 1 / 1; flex-shrink: 0; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.mini-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.mini-photo .placeholder { width: 44%; height: 44%; }
.mini-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-cat { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.mini-name { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-code { font-size: 12px; color: var(--faint); }
.mini-price { font-weight: 800; margin-top: 4px; }

.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Productos ---------- */
.shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding-top: 24px; padding-bottom: 64px; }
.filters-side { position: sticky; top: calc(var(--header) + 16px); align-self: start; max-height: calc(100vh - var(--header) - 32px); overflow: auto; padding-right: 6px; }
.fhead { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.fhead strong { display: flex; align-items: center; gap: 8px; }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.flist { list-style: none; margin: 0 0 4px; padding: 0; }
.flist .extra { display: none; }
.flist.show-all .extra { display: list-item; }
.fitem { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 6px; border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left; color: var(--muted); font-size: 14px; }
.fitem:hover { background: var(--surface-2); color: var(--ink); }
.fcheck { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); }
.fitem[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.fitem[aria-pressed="true"] .fcheck { border: 5px solid var(--brand); }
.fitem .ico { color: var(--brand-ink); }
.flabel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcount { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.shop-head h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.shop-head p { margin: 2px 0 0; }
.shop-tools { display: flex; gap: 10px; }
.shop-search { flex: 1 1 280px; max-width: 460px; align-self: center; }
.top-inner .tema-btn { margin-left: auto; }
.filters-toggle { display: none; }
.status { color: var(--muted); padding: 40px 0; text-align: center; }
.status:empty { display: none; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgb(124 58 237 / 0.45); }
.card-top { padding: 12px 12px 0; }
.brand-tag { display: inline-block; margin: 0; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-strong); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.photo { position: relative; aspect-ratio: 1 / 1; margin: 8px 12px 0; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: var(--foto-fondo); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
/* Marca de agua tenue del logo MN detrás de las fotos (se ve en las fotos sin fondo y en los íconos). */
.photo::before, .detail-photo::before, .sc-photo::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-color: #7c3aed; opacity: .035;
  -webkit-mask: url(/marca-mn.png) 0 0 / 120px auto repeat; mask: url(/marca-mn.png) 0 0 / 120px auto repeat;
}
.detail-photo::before { -webkit-mask-size: 150px auto; mask-size: 150px auto; }
.sc-photo::before { -webkit-mask-size: 150px auto; mask-size: 150px auto; }
.photo .placeholder, .detail-photo .placeholder, .sc-photo .placeholder { position: relative; stroke: #8b5cf6; color: #8b5cf6; }
.placeholder { width: 34%; height: 34%; fill: none; stroke: var(--brand-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.name { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.35; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.code-line, .spec-line { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge .ico { width: 13px; height: 13px; }
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.low { color: var(--low); background: var(--low-bg); }
.price { margin: auto 0 6px; padding-top: 6px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price.none { font-size: 14px; font-weight: 600; color: var(--muted); }
.more-wrap { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Colores del producto (colores.js) ---------- */
.swatch { --sw: transparent; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18), 0 0 0 1px var(--line-strong); }
.swatch.unknown { display: none; }
.color-line { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); min-width: 0; }
.color-line > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatches { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.swatches .swatch.unknown { display: block; background: repeating-linear-gradient(45deg, var(--surface-2) 0 3px, var(--line-strong) 3px 5px); }
.swatches .swatch.on { box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18), 0 0 0 2px var(--surface), 0 0 0 3.5px var(--brand); }
.swatch-more { font-size: 11px; font-weight: 700; }
.detail-colors { display: grid; gap: 8px; margin-top: 2px; }
.detail-color-name { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 14px; }
.detail-color-name .muted { margin: 0; }
.color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px 6px 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.color-opt .swatch { width: 22px; height: 22px; }
.color-opt .swatch.unknown { display: block; background: repeating-linear-gradient(45deg, var(--surface-2) 0 4px, var(--line-strong) 4px 7px); }
.color-opt:hover { border-color: var(--brand); }
.color-opt[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); color: var(--brand-ink); cursor: default; }
.color-opt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cart-color { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cart-color .swatch { width: 12px; height: 12px; }
.color-opt .opt-n { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.pick-hint { color: var(--brand-ink); font-weight: 700; }

/* ---------- Detalle ---------- */
.detail { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.5); }
.detail[open] { display: grid; grid-template-columns: 1fr 1fr; }
.detail::backdrop { background: rgb(12 10 24 / 0.6); backdrop-filter: blur(4px); }
.detail-photo { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--foto-fondo); }
.detail-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.detail-photo .placeholder { width: 30%; height: 30%; }
.detail-body { padding: 28px; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.detail-body h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.detail-body .muted { margin: 0; }
.spec-list { margin: 4px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.spec-list:empty { display: none; }
.spec-list dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.spec-list dd { margin: 0; font-weight: 600; font-size: 14px; }
.prices { margin: 8px 0 0; display: grid; gap: 8px; }
.prices div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.prices dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.prices dd { margin: 0; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.prices div:first-child dd { font-size: 22px; }
.detail-foot { margin: auto 0 0; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.detail-foot .badge { margin: 0; }
.code { font-size: 12px; color: var(--faint); font-family: ui-monospace, monospace; }
.close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.chip { flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.stepper button { width: 34px; height: 36px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.stepper button:hover { color: var(--brand-ink); background: var(--surface-2); }
.stepper svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.stepper input { width: 44px; height: 36px; border: 0; text-align: center; background: none; font-weight: 700; -moz-appearance: textfield; outline: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Nosotros ---------- */
.about-hero { color: #fff; background: radial-gradient(700px 400px at 85% 20%, rgb(124 58 237 / 0.45), transparent 70%), radial-gradient(600px 400px at 0% 100%, rgb(59 130 246 / 0.25), transparent 70%), linear-gradient(180deg, var(--night), #141030); }
.about-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: #c4b5fd; }
.about-hero h1 { margin: 0; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
.grad { background: linear-gradient(90deg, #c4b5fd, #8b5cf6 50%, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-hero .lead { margin: 22px 0 30px; max-width: 540px; color: rgb(255 255 255 / 0.72); font-size: 17px; }
.terminal { border-radius: 14px; border: 1px solid rgb(139 92 246 / 0.6); background: #0f0c22; box-shadow: 0 40px 80px -30px rgb(124 58 237 / 0.6); overflow: hidden; font-family: ui-monospace, "JetBrains Mono", monospace; font-size: 14px; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgb(255 255 255 / 0.08); color: rgb(255 255 255 / 0.55); font-size: 12.5px; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.term-bar i:nth-child(2) { background: #f59e0b; }
.term-bar i:nth-child(3) { background: #22c55e; margin-right: 8px; }
.term-body { padding: 18px 20px; }
.term-body p { margin: 0 0 10px; color: rgb(255 255 255 / 0.62); }
.term-body .cmd { color: #c4b5fd; }
.term-body b { color: #a78bfa; }
.cursor { display: inline-block; width: 10px; height: 18px; vertical-align: -3px; background: #a78bfa; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-bars { height: 30px; background: repeating-linear-gradient(90deg, #8b5cf6 0 3px, transparent 3px 7px); opacity: .9; }
.center { text-align: center; }
.pill-label { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0 72px; text-align: left; }
.pillar { padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pillar-tag { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .2em; color: var(--brand-ink); }
.pillar p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact-page { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header)); }
.contact-left { padding: 72px max(32px, calc((100vw - 1320px) / 2 + 16px)) 72px; padding-right: 48px; max-width: 760px; width: 100%; justify-self: end; }
.contact-left h1 { margin: 0; font-size: 34px; letter-spacing: -0.02em; }
.contact-left > .muted { margin: 6px 0 22px; }
.contact-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list a { display: block; font-weight: 700; text-decoration: none; color: var(--ink); }
.contact-list a:hover { color: var(--brand-ink); }
.contact-list .small { display: block; }
.contact-form { display: grid; gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.contact-art { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect width='120' height='120' fill='%234c1d95'/%3E%3Cpath d='M0 0h60v30H30v30H0z' fill='%238b5cf6'/%3E%3Cpath d='M60 60h60v60H90V90H60z' fill='%238b5cf6'/%3E%3Cpath d='M60 0h60L60 60z' fill='%233b82f6' opacity='.8'/%3E%3Cpath d='M0 120l60-60v60z' fill='%233b82f6' opacity='.8'/%3E%3C/svg%3E") 0 0 / 120px 120px; }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--line); background: var(--night); color: rgb(255 255 255 / 0.62); font-size: 14px; }
.foot .brand { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.foot-brand p { margin: 14px 0 0; max-width: 340px; }
.foot h3 { margin: 0 0 12px; color: #fff; font-size: 14px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: #c4b5fd; }
.foot-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / 0.4); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgb(255 255 255 / 0.08); font-size: 13px; color: rgb(255 255 255 / 0.45); }

/* ---------- Carrito ---------- */
.cart-btn { position: relative; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); display: grid; place-items: center; text-decoration: none; }
.cart-btn:hover, .cart-btn[aria-current="page"] { border-color: var(--brand); color: var(--brand-ink); }
.cart-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gradient); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn-outline { flex: 1; min-width: 0; }
.add-btn { width: 44px; flex-shrink: 0; padding: 0; }
.add-btn .ico { width: 19px; height: 19px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.detail-actions .btn { flex: 1 1 200px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--night); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.6); animation: toast-in .2s ease; }
.toast span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast .ico { color: #86efac; }
.toast-link { flex-shrink: 0; color: #c4b5fd; font-weight: 800; text-decoration: none; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

.cart-page { padding-top: 32px; padding-bottom: 72px; }
.cart-page h1 { margin: 0 0 20px; font-size: 30px; letter-spacing: -0.02em; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 110px 40px; gap: 14px; align-items: center; padding: 14px 16px; }
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-photo { position: relative; width: 76px; aspect-ratio: 1 / 1; border: 0; border-radius: 12px; padding: 0; cursor: pointer; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); }
.cart-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-photo .placeholder { width: 46%; height: 46%; }
.cart-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-name { font-weight: 700; font-size: 14px; line-height: 1.35; text-transform: uppercase; }
.cart-unit { font-size: 13px; color: var(--muted); }
.cart-sub { text-align: right; font-variant-numeric: tabular-nums; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { color: #dc2626; border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-side { position: sticky; top: calc(var(--header) + 16px); display: grid; gap: 16px; }
.cart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; }
.cart-card h2 { margin: 0; font-size: 18px; }
.cart-card .small { margin: 0; }
.cart-card .link-more { justify-self: start; font-size: 13px; }
.cart-totals { margin: 0; display: grid; gap: 8px; }
.cart-totals div { display: flex; justify-content: space-between; align-items: baseline; }
.cart-totals dt { color: var(--muted); }
.cart-totals dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-totals div:last-child { padding-top: 10px; border-top: 1px solid var(--line); }
.cart-totals div:last-child dd { font-size: 22px; font-weight: 800; }
.choice { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { width: 100%; padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.choice-opt { flex: 1 1 140px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); cursor: pointer; font-size: 14px; font-weight: 600; }
.choice-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.choice-opt input { accent-color: var(--brand); margin: 0; }
.cart-empty, .cart-sent { display: grid; justify-items: center; text-align: center; gap: 10px; }
.cart-empty { padding: 56px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-empty h2, .cart-sent h2 { margin: 6px 0 0; }
.cart-empty p, .cart-sent p { margin: 0; }
.cart-empty-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.cart-empty-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-empty .cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.sent-btns { width: 100%; display: grid; gap: 10px; margin-top: 6px; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(220 38 38 / 0.35); background: rgb(220 38 38 / 0.08); color: #b91c1c; font-size: 14px; font-weight: 600; }
.form-error p { margin: 0; }
.field-error { color: #b91c1c; font-size: 13px; font-weight: 600; }
.input[aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 3px rgb(220 38 38 / 0.15); }
.form-note { margin: -4px 0 0; }
.phone-row { display: flex; gap: 8px; }
.phone-row select { flex: 0 0 auto; width: 104px; font-weight: 600; }
.phone-row .input { flex: 1; min-width: 0; }
select[aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 3px rgb(220 38 38 / 0.15); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.form-error, .field-error) { color: #fca5a5; } }
:root[data-theme="dark"] :is(.form-error, .field-error) { color: #fca5a5; }
.form-error .small { font-weight: 500; }
.received { max-width: 620px; margin: 0 auto; }
.received h1 { margin: 6px 0 0; }
.received-number { font-size: 22px; font-weight: 800; letter-spacing: .04em; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.received-list { width: 100%; list-style: none; margin: 10px 0 4px; padding: 0; text-align: left; border-top: 1px solid var(--line); }
.received-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.received-list strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.received-total { font-size: 16px !important; }
.received-total strong { font-size: 18px; }

/* ---------- Chat ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-fab { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: #25d366; box-shadow: 0 14px 30px -10px rgb(37 211 102 / 0.7); transition: transform .15s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat.open .chat-fab { background: var(--night); box-shadow: var(--shadow); }
.chat-panel { width: min(360px, calc(100vw - 32px)); border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -20px rgb(0 0 0 / 0.45); animation: chat-in .18s ease; transform-origin: bottom right; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; background: var(--gradient); }
.chat-head .mark { width: 40px; height: 40px; flex-shrink: 0; background: rgb(255 255 255 / 0.18); box-shadow: none; }
.chat-head .mark svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-head div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chat-head span { font-size: 12.5px; opacity: .85; }
.chat-close { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgb(255 255 255 / 0.14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chat-body { padding: 16px; display: grid; gap: 12px; background: var(--surface-2); }
.chat-bubble { margin: 0; justify-self: start; max-width: 85%; padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: var(--surface); box-shadow: var(--shadow); font-size: 14px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chips .chip { height: auto; padding: 7px 10px; text-align: left; white-space: normal; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; padding-top: 10px; }
.chat-send { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: #25d366; }
.chat-send svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tableta ---------- */
/* ---------- Vitrina en vivo (portada) ---------- */
.showcase { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(700px 480px at 22% 30%, rgb(139 92 246 / 0.55), transparent 70%),
    radial-gradient(600px 420px at 85% 80%, rgb(59 130 246 / 0.4), transparent 70%),
    linear-gradient(140deg, #0c0a18, #1e1450 55%, #13163a); }
.showcase::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgb(255 255 255 / 0.25) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 85%); }
.showcase-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 28px; min-height: 440px; }
.showcase-empty { grid-template-columns: 1fr; min-height: 360px; }
.sc-stage { position: relative; display: grid; place-items: center; }
.sc-stage::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(167 139 250 / 0.55), transparent 65%); filter: blur(10px); animation: sc-glow 4s ease-in-out infinite alternate; }
.sc-photo { position: relative; width: min(100%, 400px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 28px; background: var(--foto-fondo); border: 1px solid rgb(255 255 255 / 0.5); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7); backdrop-filter: blur(6px); }
.sc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 28px; border-radius: 28px; }
.sc-photo .placeholder { width: 42%; height: 42%; }
.sc-photo.sc-in { animation: sc-in .6s cubic-bezier(.2, .8, .2, 1); }
.sc-info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sc-info > * { animation: sc-up .5s ease both; }
.sc-info > :nth-child(2) { animation-delay: .05s; } .sc-info > :nth-child(3) { animation-delay: .1s; }
.sc-info > :nth-child(4) { animation-delay: .15s; } .sc-info > :nth-child(5) { animation-delay: .2s; }
.sc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sc-live { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgb(239 68 68 / 0.15); border: 1px solid rgb(248 113 113 / 0.45); color: #fecaca; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sc-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgb(239 68 68 / 0.7); animation: sc-pulse 1.6s infinite; }
.sc-cat { color: rgb(255 255 255 / 0.7); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.sc-name { margin: 0; font-size: clamp(28px, 4.2vw, 50px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.sc-prices { display: flex; flex-direction: column; gap: 4px; }
.sc-price { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(90deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-alt { color: rgb(255 255 255 / 0.7); font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-stock { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; font-weight: 800; font-size: 14px; }
.sc-stock.hot { background: rgb(245 158 11 / 0.16); color: #fcd34d; border: 1px solid rgb(245 158 11 / 0.4); }
.sc-stock.ok { background: rgb(16 185 129 / 0.14); color: #6ee7b7; border: 1px solid rgb(16 185 129 / 0.35); }
.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.sc-actions .btn .ico { width: 18px; height: 18px; }
.sc-share { width: 44px; height: 44px; color: #fff; border-color: rgb(255 255 255 / 0.35); }
.sc-share:hover { color: #fff; border-color: #fff; background: rgb(255 255 255 / 0.1); }
.sc-bottom { display: flex; flex-direction: column; gap: 14px; padding-bottom: 96px; }
.sc-progress { height: 3px; border-radius: 3px; background: rgb(255 255 255 / 0.12); overflow: hidden; }
.sc-progress span { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, #a78bfa, #60a5fa); animation: sc-bar var(--sc-ms, 6s) linear both; }
.showcase.paused .sc-progress span { animation-play-state: paused; }
.sc-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sc-thumbs { list-style: none; margin: 0; padding: 2px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.sc-thumbs::-webkit-scrollbar { display: none; }
.sc-thumb { width: 64px; height: 64px; padding: 0; border-radius: 14px; border: 2px solid rgb(255 255 255 / 0.15); background: rgb(255 255 255 / 0.06); cursor: pointer; overflow: hidden; opacity: .6; transition: opacity .2s, border-color .2s, transform .2s; }
.sc-thumb:hover { opacity: 1; transform: translateY(-2px); }
.sc-thumb[aria-current="true"] { opacity: 1; border-color: #a78bfa; box-shadow: 0 0 0 3px rgb(167 139 250 / 0.3); }
.sc-thumb-photo { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.sc-thumb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.sc-thumb-photo .placeholder { width: 50%; height: 50%; color: #c4b5fd; }
.sc-arrows { display: flex; gap: 8px; flex-shrink: 0; }
.sc-arrow { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgb(255 255 255 / 0.25); background: rgb(255 255 255 / 0.06); color: #fff; cursor: pointer; display: grid; place-items: center; }
.sc-arrow:hover { background: rgb(255 255 255 / 0.14); }
.sc-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes sc-in { from { opacity: 0; transform: translateY(18px) scale(.94) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes sc-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sc-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sc-glow { from { transform: scale(.92); opacity: .7; } to { transform: scale(1.06); opacity: 1; } }
@keyframes sc-pulse { 0% { box-shadow: 0 0 0 0 rgb(239 68 68 / 0.7); } 70% { box-shadow: 0 0 0 8px rgb(239 68 68 / 0); } 100% { box-shadow: 0 0 0 0 rgb(239 68 68 / 0); } }

/* Compartir */
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.share-btn { width: 32px; height: 32px; color: var(--muted); }
.share-btn:hover { color: var(--brand-ink); border-color: var(--line-strong); }
.share-btn svg { width: 16px; height: 16px; }
.detail-actions #detail-add { flex: 1 1 160px; }
.detail-actions #detail-share { flex: 0 0 auto; padding-inline: 18px; }
#detail-share span { display: inline-flex; align-items: center; gap: 8px; }
.share { width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.5); }
.share::backdrop { background: rgb(12 10 24 / 0.6); backdrop-filter: blur(4px); }
.share h2 { margin: 0 44px 4px 0; font-size: 19px; }
.share .muted { margin: 0 0 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.share-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.share-opt:hover { border-color: var(--brand); }
.share-opt .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; color: #fff; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-wa .ico { background: #25d366; }
.share-fb .ico { background: #1877f2; }
.share-tg .ico { background: #229ed9; }
.share-xx .ico { background: #111; }
.share-link { display: flex; gap: 8px; }
.share-link input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 13px; }
.share-link .btn { flex-shrink: 0; }
.share-more { width: 100%; margin-top: 10px; }

@media (max-width: 1100px) {
  .nav { position: fixed; top: var(--header); left: 0; right: 0; z-index: 29; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .menu-open .nav { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .menu-btn { display: grid; }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .shop { grid-template-columns: minmax(0, 1fr); }
  .filters-toggle { display: inline-flex; }
  .filters-side { position: static; max-height: none; display: none; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .filters-side.open { display: block; }
  .about-inner { grid-template-columns: minmax(0, 1fr); padding-top: 56px; padding-bottom: 64px; }
  .pillars { grid-template-columns: 1fr; }
  .contact-page { grid-template-columns: 1fr; }
  .contact-left { padding: 40px 16px 56px; justify-self: stretch; max-width: none; }
  .contact-art { display: none; }
  .cart-grid { grid-template-columns: minmax(0, 1fr); }
  .cart-side { position: static; }
}
/* ---------- Celular ---------- */
@media (max-width: 640px) {
  .top-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .brand { margin-right: auto; }
  .menu-btn { width: 40px; height: 40px; }
  .shop-search { order: 3; flex-basis: 100%; }
  .showcase-inner { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; min-height: 0; }
  .sc-photo { width: min(78vw, 300px); }
  .sc-info { align-items: stretch; }
  .sc-stock, .sc-tags { align-self: flex-start; }
  .sc-tags { justify-content: flex-start; }
  .sc-actions .btn { flex: 1; }
  .sc-bottom { padding-bottom: 80px; }
  .sc-thumb { width: 52px; height: 52px; }
  .sc-arrows { display: none; }
  .feature { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .feature + .feature { border-left: 0; }
  .feature:nth-child(even) { border-left: 1px solid var(--line); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 14px; }
  .tile-name { font-size: 14px; }
  .carousel { grid-auto-columns: 86%; }
  .cta-btns .btn { flex: 1; }
  .shop-head h1 { font-size: 24px; }
  .shop-tools { width: 100%; }
  .shop-tools select { flex: 1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-top { padding: 8px 8px 0; }
  .brand-tag { font-size: 10px; }
  .photo { margin: 6px 8px 0; }
  .body { padding: 10px; gap: 4px; }
  .name { font-size: 12.5px; }
  .code-line, .spec-line { display: none; }
  .price { font-size: 16px; }
  .card .btn { height: 38px; font-size: 13px; padding: 0 10px; }
  .card .btn .ico { display: none; }
  .card .add-btn { width: 38px; }
  .card .add-btn .ico { display: block; width: 17px; height: 17px; }
  .card-actions { gap: 6px; }
  .cart-btn { width: 40px; height: 40px; }
  .cart-page { padding-top: 20px; }
  .cart-page h1 { font-size: 24px; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "photo info remove" "photo step sub"; gap: 8px 12px; padding: 12px; }
  .cart-photo { grid-area: photo; width: 64px; align-self: start; }
  .cart-info { grid-area: info; }
  .cart-line .stepper { grid-area: step; justify-self: start; }
  .cart-sub { grid-area: sub; align-self: center; white-space: nowrap; }
  .cart-line .icon-btn { justify-self: end; }
  .toast { bottom: 80px; }
  .top-inner { gap: 8px; }
  .brand-text { font-size: 16px; }
  .logo-mn { width: 50px; height: 32px; }
  .cart-line .icon-btn { grid-area: remove; width: 36px; height: 36px; align-self: start; }
  .chat { right: 14px; bottom: 14px; }
  .chat-fab { width: 52px; height: 52px; }
  .detail[open] { grid-template-columns: 1fr; }
  .detail-photo { aspect-ratio: 4 / 3; }
  .detail-body { padding: 20px; }
  .two { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Efectos de ratón y clic (efectos.js) ---------- */
/* Luz que sigue al cursor e inclinación 3D: efectos.js pone --mx/--my (luz) y --rx/--ry (giro) y la clase fx-on. */
.card, .mini-btn { position: relative; }
.card::after, .mini-btn::after, .mundo::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(139 92 246 / 0.16), transparent 60%);
  box-shadow: inset 0 0 0 1px rgb(139 92 246 / 0.35);
}
.mundo::after { z-index: -1; }
.fx-on::after { opacity: 1; }
.card.fx-on, .mundo.fx-on, .mini-btn.fx-on {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
  transition: transform .08s linear, box-shadow .2s, border-color .18s;
}
.card.fx-on { box-shadow: 0 26px 50px -24px rgb(91 33 182 / 0.55); }
/* Destello que barre la foto al pasar el ratón. */
.photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(115deg, transparent 38%, rgb(167 139 250 / 0.22) 50%, transparent 62%);
  transform: translateX(-120%);
}
.card:hover .photo::after { transform: translateX(120%); transition: transform .8s ease; }
.photo img { transition: transform .35s ease; }
.card.fx-on .photo img { transform: scale(1.05); }

/* Vitrina: los puntos del fondo se encienden alrededor del cursor y la foto se inclina hacia él. */
.showcase::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background:
    radial-gradient(rgb(196 181 253 / 0.95) 1.3px, transparent 1.6px) 0 0 / 22px 22px,
    radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), rgb(139 92 246 / 0.28), transparent 70%);
  -webkit-mask: radial-gradient(220px circle at var(--sx, 50%) var(--sy, 50%), #000, transparent 75%);
  mask: radial-gradient(220px circle at var(--sx, 50%) var(--sy, 50%), #000, transparent 75%);
}
.showcase.fx-on::after { opacity: 1; }
.sc-photo { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out; }

/* Chispas al hacer clic. */
.fx-burst { position: fixed; z-index: 1000; width: 0; height: 0; pointer-events: none; }
.fx-burst i { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid #b69dff; box-shadow: 0 0 18px #8b5cf6, inset 0 0 12px rgb(139 92 246 / 0.6); animation: fx-ring .55s ease-out forwards; }
.fx-burst i + i { left: -10px; top: -10px; width: 20px; height: 20px; border: 0; background: radial-gradient(circle, #fff, rgb(167 139 250 / 0.85) 45%, transparent 70%); box-shadow: none; animation: fx-flash .35s ease-out forwards; }
.fx-burst b { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 1.5px; background: #d4c8ff; box-shadow: 0 0 9px #8b5cf6; animation: fx-spark .6s ease-out forwards; }
.fx-burst b:nth-child(odd) { background: #a8d0ff; box-shadow: 0 0 9px #3b82f6; }
@keyframes fx-ring { from { transform: scale(.2); opacity: 1; } to { transform: scale(2); opacity: 0; } }
@keyframes fx-flash { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
@keyframes fx-spark { from { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.3) rotate(140deg); opacity: 0; } }

/* Cursor «Flecha MN»: flecha y mano con el degradado de la marca (cursores del sistema, sin JavaScript). Los campos
   de texto conservan su cursor. */
@media (hover: hover) and (pointer: fine) {
  html { cursor: url(/cursor-mn.svg) 4 3, auto; }
  :is(a, button, summary, label, select, [role=button]):not(:disabled) { cursor: url(/cursor-mano.svg) 11 4, pointer !important; }
  :is(input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]), textarea) { cursor: text; }
}
.fx-chispita { position: fixed; z-index: 999; width: 14px; height: 14px; margin: -7px 0 0 -7px; pointer-events: none; background: #ddd6fe;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 4px #8b5cf6);
  animation: fx-chispita .75s ease-out forwards; }
.fx-chispita.azul { background: #93c5fd; filter: drop-shadow(0 0 4px #3b82f6); }
@keyframes fx-chispita { from { opacity: 1; transform: translateY(0) scale(var(--s, 1)) rotate(0); } to { opacity: 0; transform: translateY(16px) scale(calc(var(--s, 1) * .4)) rotate(90deg); } }

/* El producto vuela al carrito y el carrito late. */
.fx-fly { position: fixed; z-index: 1000; pointer-events: none; object-fit: contain; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -12px rgb(91 33 182 / 0.7); }
.cart-btn.fx-bump { animation: fx-bump .5s cubic-bezier(.3, 1.6, .5, 1); }
.cart-btn.fx-bump .cart-count { animation: fx-bump .5s cubic-bezier(.3, 1.6, .5, 1) .05s; }
@keyframes fx-bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); box-shadow: 0 0 0 6px rgb(139 92 246 / 0.25); } 100% { transform: scale(1); } }

/* Ficha «Ver detalles»: entra con un zoom, el borde brilla y gira, el texto aparece en cascada, la foto se
   acerca hacia donde apunta el ratón con una luz encima y al agregar el botón late con un «+1». */
.detail[open] { animation: fx-ficha .38s cubic-bezier(.2, .9, .25, 1.1); overflow: visible; }
.detail[open]::backdrop { animation: fx-fondo .3s ease-out; }
@keyframes fx-ficha { from { opacity: 0; transform: translateY(18px) scale(.94); } }
@keyframes fx-fondo { from { opacity: 0; } }
.detail[open]::before { content: ''; position: absolute; inset: -1.5px; z-index: -1; border-radius: 21px; pointer-events: none;
  background: conic-gradient(from var(--fx-ang, 0deg), #8b5cf6, #3b82f6, #a78bfa, #22d3ee, #8b5cf6);
  filter: blur(.5px); opacity: .85; animation: fx-borde 6s linear infinite; }
.detail[open]::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 20px; background: var(--surface); pointer-events: none; }
.detail { position: fixed; isolation: isolate; }
.detail-photo { overflow: hidden; border-radius: 20px 0 0 20px; }
@media (max-width: 640px) { .detail-photo { border-radius: 20px 20px 0 0; } }
@media (min-width: 641px) { .detail-photo { aspect-ratio: auto; min-height: 420px; align-self: stretch; } }
@property --fx-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes fx-borde { to { --fx-ang: 360deg; } }
.detail[open] .detail-body > * { animation: fx-up .45s cubic-bezier(.2, .8, .2, 1) backwards; }
.detail[open] .detail-body > :nth-child(2) { animation-delay: .06s; } .detail[open] .detail-body > :nth-child(3) { animation-delay: .1s; }
.detail[open] .detail-body > :nth-child(4) { animation-delay: .14s; } .detail[open] .detail-body > :nth-child(5) { animation-delay: .18s; }
.detail[open] .detail-body > :nth-child(n+6) { animation-delay: .22s; }
.detail[open] .detail-photo img { animation: fx-foto .5s cubic-bezier(.2, .9, .25, 1.1) .05s backwards; }
@keyframes fx-foto { from { opacity: 0; transform: scale(.85) rotate(-4deg); } }
.detail-photo img { transition: transform .25s ease-out; transform-origin: var(--mx, 50%) var(--my, 50%); }
.detail-photo.fx-on img { transform: scale(1.35); }
.detail-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgb(167 139 250 / 0.18), transparent 65%); }
.detail-photo.fx-on::after { opacity: 1; }
/* Dentro de la ficha: cada dato es una ficha que se ilumina al pasar el ratón y aparece en cascada; los precios
   brillan al pasar y el principal tiene un barrido de luz. */
.detail .spec-list > div { position: relative; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); transition: border-color .2s, box-shadow .2s, transform .2s; }
.detail .spec-list > div:hover { border-color: rgb(139 92 246 / 0.55); box-shadow: 0 0 0 3px rgb(139 92 246 / 0.12), 0 8px 18px -10px rgb(139 92 246 / 0.6); transform: translateY(-2px); }
.detail[open] .spec-list > div, .detail[open] .prices > div { animation: fx-up .4s cubic-bezier(.2, .8, .2, 1) backwards; }
.detail[open] .spec-list > div:nth-child(2), .detail[open] .prices > div:nth-child(2) { animation-delay: .2s; }
.detail[open] .spec-list > div:nth-child(3), .detail[open] .prices > div:nth-child(3) { animation-delay: .25s; }
.detail[open] .spec-list > div:nth-child(n+4) { animation-delay: .3s; }
.detail .prices > div { position: relative; overflow: hidden; border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.detail .prices > div:hover { border-color: rgb(139 92 246 / 0.5); transform: translateX(3px); }
.detail .prices > div:first-child { background: linear-gradient(120deg, rgb(139 92 246 / 0.16), rgb(59 130 246 / 0.12)); border-color: rgb(139 92 246 / 0.35); }
.detail .prices > div:first-child dd { background: linear-gradient(90deg, #8b5cf6, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.detail .prices > div:first-child dd .was { -webkit-text-fill-color: var(--faint); }
.detail .prices > div:first-child::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / 0.35) 50%, transparent 60%); transform: translateX(-100%); animation: fx-barrido 3.2s ease-in-out .6s infinite; }
@keyframes fx-barrido { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
#detail-add.fx-ok { animation: fx-ok .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fx-ok { 40% { transform: scale(1.06); box-shadow: 0 0 0 6px rgb(139 92 246 / 0.3), 0 0 26px rgb(139 92 246 / 0.6); } }
.fx-mas { position: fixed; z-index: 1000; transform: translate(-50%, 0); pointer-events: none; font-weight: 800; font-size: 20px;
  background: linear-gradient(90deg, #a78bfa, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fx-mas .9s ease-out forwards; }
@keyframes fx-mas { from { opacity: 1; transform: translate(-50%, 0) scale(.8); } to { opacity: 0; transform: translate(-50%, -54px) scale(1.25); } }

/* Aparecen al bajar (efectos.js pone fx-reveal y, al entrar en pantalla, fx-in). */
.fx-reveal:not(.fx-in) { opacity: 0; transform: translateY(16px); }
.fx-reveal.fx-in { animation: fx-up .5s cubic-bezier(.2, .8, .2, 1) var(--fx-delay, 0ms) backwards; }
@keyframes fx-up { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Promociones (las arma Yvan en MN Tech) ---------- */
.promo-badge { position: absolute; top: 8px; left: 8px; z-index: 1; max-width: calc(100% - 16px); padding: 4px 9px; border-radius: 8px; background: linear-gradient(90deg, #e11d48, #f97316); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 6px 16px -6px rgb(225 29 72 / 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-photo .promo-badge, .sc-photo .promo-badge { top: 16px; left: 16px; font-size: 14px; padding: 6px 12px; border-radius: 10px; }
.was { margin-left: 8px; color: var(--faint); font-size: .68em; font-weight: 600; text-decoration-thickness: 1.5px; }
.sc-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.sc-was { color: rgb(255 255 255 / 0.55); font-size: clamp(18px, 2vw, 22px); font-weight: 700; text-decoration-thickness: 2px; }
.sc-live.sc-offer { background: rgb(244 63 94 / 0.2); border-color: rgb(251 113 133 / 0.55); color: #fecdd3; }
.sc-live.sc-notice { background: rgb(59 130 246 / 0.18); border-color: rgb(96 165 250 / 0.5); color: #bfdbfe; }
.sc-live.sc-notice::before { background: #3b82f6; animation: none; }
.promo-chip { padding: 5px 12px; border-radius: 999px; background: linear-gradient(90deg, #e11d48, #f97316); color: #fff; font-size: 13px; font-weight: 800; }
.sc-promo { margin: -4px 0 0; display: grid; gap: 2px; color: #fda4af; font-size: 17px; font-weight: 800; }
.sc-promo span { color: rgb(255 255 255 / 0.75); font-size: 15px; font-weight: 500; }
.sc-text { margin: -2px 0 0; max-width: 46ch; color: rgb(255 255 255 / 0.8); font-size: 17px; line-height: 1.5; }
.sc-photo img.sc-logo { padding: 8%; object-fit: contain; filter: drop-shadow(0 8px 24px rgb(139 92 246 / 0.45)); }
.mini-photo .promo-badge { top: 4px; left: 4px; padding: 2px 6px; font-size: 10px; border-radius: 6px; }
.mini-photo img.mini-logo { padding: 10px; }
.mini-static { cursor: default; }
.mini-static:hover { border-color: var(--line); }
.mini-text { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.section-sub { margin: 2px 0 0; font-size: 14px; }
a.mini-btn { text-decoration: none; }

/* ---------- Mundos MN (portada) ---------- */
.mundos { position: relative; z-index: 2; margin-top: -44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mundo { --c1: #8b2fc9; --c2: #6d5bd0; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 230px; padding: 20px; border-radius: 22px; overflow: hidden; isolation: isolate; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--c1), var(--c2)) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.mundo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--c2) 28%, transparent), transparent 60%); }
.mundo:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--c1) 70%, transparent); }
.mundo-2 { --c1: #7a3fd0; --c2: #5f7fd2; } .mundo-3 { --c1: #6a5ad3; --c2: #4f9fd3; } .mundo-4 { --c1: #5f7fd2; --c2: #4fb3d1; }
.mundo-text { display: grid; gap: 4px; justify-items: start; max-width: 62%; }
.mundo-icon { width: 46px; height: 46px; margin-bottom: 6px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 24px -10px var(--c1); }
.mundo-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mundo h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.mundo p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.mundo-count { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 800; font-size: 14px; color: var(--brand-ink); }
.mundo-count .ico { width: 16px; height: 16px; transition: transform .2s; }
.mundo:hover .mundo-count .ico { transform: translateX(4px); }
.mundo-photo { position: absolute; right: -6px; bottom: -6px; width: 46%; aspect-ratio: 1; display: grid; place-items: center; }
.mundo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; filter: drop-shadow(0 12px 18px rgb(0 0 0 / 0.35)); transition: transform .3s; }
.mundo:hover .mundo-photo img { transform: scale(1.06) rotate(-2deg); }
.mundo-photo .placeholder { width: 60%; height: 60%; position: relative; }
@media (max-width: 1000px) { .mundos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .mundos { margin-top: 16px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mundo { min-height: 176px; padding: 14px; border-radius: 18px; }
  .mundo-text { max-width: 100%; }
  .mundo-icon { width: 38px; height: 38px; border-radius: 12px; }
  .mundo h3 { font-size: 18px; }
  .mundo p { display: none; }
  .mundo-count { font-size: 13px; }
  .mundo-photo { width: 48%; right: -4px; bottom: -4px; }
}

/* ---------- Buscador grande del inicio ---------- */
.hero-search { position: relative; z-index: 3; margin-top: -44px; }
.hs-box { position: relative; max-width: 680px; margin: 0 auto; padding: 20px 22px 16px; border-radius: 20px; text-align: center;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #8b5cf6, #3b82f6 55%, #22d3ee) border-box;
  border: 1.5px solid transparent; box-shadow: 0 30px 70px -30px rgb(91 33 182 / 0.6); }
.hs-title { margin: 0; font-size: clamp(20px, 2.4vw, 25px); letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--ink), #8b5cf6 60%, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-sub { margin: 4px auto 12px; color: var(--muted); font-size: 13.5px; max-width: 520px; }
.hs-form { margin: 0; }
.hs-field { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border-radius: 14px; background: var(--surface-2);
  border: 1.5px solid var(--line-strong); transition: border-color .2s, box-shadow .2s; }
.hs-field:focus-within { border-color: #8b5cf6; box-shadow: 0 0 0 5px rgb(139 92 246 / 0.18), 0 0 32px -6px rgb(139 92 246 / 0.6); }
.hs-icon { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: #8b5cf6; stroke-width: 2.2; stroke-linecap: round; }
.hs-input { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15.5px; }
.hs-input::-webkit-search-cancel-button { cursor: pointer; }
.hs-go { height: 40px; padding-inline: 18px; border-radius: 11px; flex-shrink: 0; }
.hs-results { list-style: none; margin: 10px 0 0; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; box-shadow: var(--shadow); }
.hs-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: 12px; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.hs-item:hover, .hs-item:focus-visible { background: var(--surface-2); }
.hs-photo { position: relative; width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--foto-fondo); }
.hs-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.hs-photo .placeholder { width: 55%; height: 55%; }
.hs-info { flex: 1; min-width: 0; display: grid; }
.hs-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-cat { color: var(--muted); font-size: 12.5px; }
.hs-price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.hs-more { padding: 8px 10px 4px; font-size: 14px; }
.hs-all { display: inline-flex; margin-top: 10px; font-size: 13.5px; }
@media (max-width: 640px) {
  .hero-search { margin-top: -28px; }
  .hs-box { padding: 16px 14px 12px; border-radius: 18px; }
  .hs-field { padding-left: 12px; }
  .hs-input { height: 40px; font-size: 16px; }
  .hs-go { padding-inline: 12px; height: 38px; }
  .hs-go .ico { display: none; }
}

/* ---------- Botón de tema (tema.js): muestra la luna en claro y el sol en oscuro ---------- */
.tema-btn { flex-shrink: 0; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.tema-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.tema-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tema-btn .sol { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tema-btn .sol { display: block; } :root:not([data-theme="light"]) .tema-btn .luna { display: none; } }
:root[data-theme="dark"] .tema-btn .sol { display: block; }
:root[data-theme="dark"] .tema-btn .luna { display: none; }
@media (max-width: 640px) { .tema-btn { width: 40px; height: 40px; } }
/* Celular angosto: con el botón de tema la fila no cabe; queda el monograma MN como marca. */
@media (max-width: 440px) { .brand-text { display: none; } }

/* ---------- Productos nuevos (banner del inicio y etiqueta «Nuevo») ---------- */
.new-badge { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 4px 9px; border-radius: 8px; background: var(--gradient); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; box-shadow: var(--glow); white-space: nowrap; }
.detail-photo .new-badge, .sc-photo .new-badge { top: 16px; right: 16px; font-size: 14px; padding: 6px 12px; border-radius: 10px; }
.mini-photo .new-badge { top: auto; bottom: 4px; right: 4px; padding: 2px 6px; font-size: 10px; border-radius: 6px; }

.nuevos-sec { padding-top: 26px; }
.nuevos-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px clamp(20px, 4vw, 44px); border-radius: 24px; overflow: hidden; color: #fff; text-decoration: none; background: var(--gradient); box-shadow: var(--glow), var(--shadow); isolation: isolate; transition: transform .2s ease, box-shadow .2s ease; }
.nuevos-banner::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / 0.28), transparent 65%); z-index: -1; }
.nuevos-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.22) 45%, transparent 60%); transform: translateX(-100%); animation: nb-brillo 4.5s ease-in-out infinite; z-index: -1; }
.nuevos-banner:hover { transform: translateY(-2px); }
.nuevos-banner:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.nb-text { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.nb-kicker { padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.2); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.section .nb-title, .nb-title { margin: 0; font-size: clamp(30px, 5vw, 46px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; color: #fff; }
.nb-sub { margin: 0 0 8px; font-size: 16px; opacity: .92; }
.nb-btn { background: #fff; color: #5b21b6; border-color: #fff; font-weight: 800; }
.nuevos-banner:hover .nb-btn { background: #f5f3ff; }
.nb-fotos { display: flex; flex-shrink: 0; }
.nb-foto { position: relative; width: clamp(64px, 9vw, 104px); aspect-ratio: 1; margin-left: -18px; border-radius: 50%; background: var(--foto-fondo); border: 3px solid rgb(255 255 255 / 0.85); box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.5); display: grid; place-items: center; overflow: hidden; animation: nb-flota 5s ease-in-out infinite; }
.nb-foto:nth-child(2) { animation-delay: -1.2s; }
.nb-foto:nth-child(3) { animation-delay: -2.4s; }
.nb-foto:nth-child(4) { animation-delay: -3.6s; }
.nb-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.nb-foto .placeholder { width: 46%; height: 46%; stroke: #8b5cf6; color: #8b5cf6; }
@keyframes nb-brillo { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes nb-flota { 50% { transform: translateY(-6px); } }
@media (max-width: 640px) {
  .nuevos-banner { flex-direction: column; align-items: stretch; gap: 18px; padding: 22px 20px; }
  .nb-fotos { order: -1; justify-content: center; padding-left: 18px; }
  .nb-btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .nuevos-banner, .nuevos-banner::after, .nb-foto { animation: none; transition: none; }
  .nuevos-banner:hover { transform: none; }
}

/* ---------- Íconos «Burbuja 3D» y transiciones (efectos.js) ---------- */
/* La cabecera queda quieta mientras la página nueva se abre en círculo desde el toque (--vt-x, --vt-y). */
.top { view-transition-name: cabecera; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: vt-circulo .6s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes vt-circulo { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); } to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 0)); } }

/* Íconos de categoría tipo «clay»: degradado MN con brillo arriba y sombra interna; aparecen con rebote. */
.tile-icon {
  position: relative; width: 58px; height: 58px; border-radius: 20px;
  background: radial-gradient(120% 120% at 30% 20%, #c4b5fd 0%, #8b5cf6 38%, #6d28d9 70%, #3b82f6 120%);
  box-shadow: inset 0 3px 6px rgb(255 255 255 / 0.55), inset 0 -6px 12px rgb(46 16 101 / 0.45), 0 14px 24px -10px rgb(109 40 217 / 0.65);
}
.tile-icon::after {
  content: ""; position: absolute; top: 6px; left: 10px; width: 22px; height: 10px; border-radius: 50%;
  background: rgb(255 255 255 / 0.45); filter: blur(2px); transform: rotate(-18deg);
}
.tile-icon svg { width: 27px; height: 27px; stroke-width: 2.3; filter: drop-shadow(0 2px 2px rgb(46 16 101 / 0.5)); }
.tile { animation: ic-pop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
.tiles li:nth-child(2n) .tile { animation-delay: .06s; }
.tiles li:nth-child(3n) .tile { animation-delay: .12s; }
.tile:hover .tile-icon { animation: ic-gelatina .7s cubic-bezier(.34, 1.56, .64, 1); }
svg.fx-salta { animation: ic-salto .55s cubic-bezier(.34, 1.56, .64, 1); }
.btn:active, .chip:active, .tile:active { transform: scale(.94); }
@keyframes ic-pop { from { opacity: 0; transform: scale(.6) translateY(20px); } }
@keyframes ic-gelatina { 0% { transform: scale(1); } 30% { transform: scale(1.18, .86); } 50% { transform: scale(.9, 1.12); } 70% { transform: scale(1.06, .96); } 100% { transform: scale(1); } }
@keyframes ic-salto { 0% { transform: none; } 40% { transform: translateY(-4px) scale(1.18) rotate(-8deg); } 100% { transform: none; } }
@media (max-width: 640px) {
  .tile-icon { width: 50px; height: 50px; border-radius: 17px; }
  .tile-icon svg { width: 24px; height: 24px; }
}

/* Pastilla de la navegación que se desliza hasta la sección activa (con el menú plegado, ≤1100px, es una lista). */
@media (min-width: 1101px) {
  .nav { position: relative; }
  .nav::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--p-w, 0); transform: translateX(var(--p-x, 0));
    border-radius: 10px; background: var(--brand-soft); transition: transform .45s cubic-bezier(.34, 1.4, .64, 1), width .45s cubic-bezier(.34, 1.4, .64, 1);
  }
  .nav a { position: relative; }
  .nav a[aria-current="page"] { background: none; }
}

/* ---------- Varias fotos en la ficha (app.js, galeriaDetalle) ---------- */
.gal-btn { position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; margin-top: -19px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: rgb(15 15 25 / 0.55); color: #fff; cursor: pointer; opacity: .85;
  transition: opacity .2s, transform .2s, background .2s; }
.gal-btn:hover, .gal-btn:focus-visible { opacity: 1; background: rgb(124 58 237 / 0.85); transform: scale(1.06); }
.gal-btn .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 7px; }
.gal-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgb(124 58 237 / 0.28); cursor: pointer;
  transition: width .2s, background .2s; }
.gal-dot.on { width: 22px; background: #7c3aed; }
.gal-btn[hidden], .gal-dots[hidden] { display: none; }
@media (hover: hover) { .detail-photo .gal-btn { opacity: 0; } .detail-photo:hover .gal-btn, .detail-photo .gal-btn:focus-visible { opacity: .85; } }
