/* Tienda pública de Kaizen Lab: catálogo, página de cada producto y pedido.
   Mismos colores que el panel (azul marino + rojo de la marca); modo oscuro por defecto. */
:root {
  --bg: #121922; --bg-deep: #0D131B; --surface: #1A2330; --surface-2: #222D3B; --surface-3: #2A3646;
  --ink: #F1F3F4; --ink-soft: #9AA6B2; --line: rgba(241,243,244,0.09); --line-strong: rgba(241,243,244,0.18);
  --red: #EF5348; --red-hover: #FF6659; --red-btn: #E64439; --red-soft: rgba(239,83,72,0.14);
  --ok: #35C99A; --ok-soft: rgba(53,201,154,0.13); --wa: #1FAF57; --wa-hover: #22C25F;
  --glass: rgba(18,25,34,0.86); --overlay: rgba(5,8,12,0.62); --shadow: rgba(0,0,0,0.35);
  --stage-a: #26313F; --stage-b: #121922;
  --head: 'Poppins', sans-serif; --body: 'Inter', sans-serif; --mono: 'JetBrains Mono', monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --wrap: 1200px; --top-h: 68px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F8F9F9; --bg-deep: #EEF1F3; --surface: #FFFFFF; --surface-2: #F1F3F4; --surface-3: #E6EAED;
  --ink: #1E2835; --ink-soft: #5E6874; --line: rgba(30,40,53,0.10); --line-strong: rgba(30,40,53,0.22);
  --red: #D93A2F; --red-hover: #C1342A; --red-btn: #E64439; --red-soft: rgba(230,68,57,0.10);
  --ok: #0E8A64; --ok-soft: rgba(14,138,100,0.10);
  --glass: rgba(248,249,249,0.9); --overlay: rgba(30,40,53,0.45); --shadow: rgba(30,40,53,0.08);
  --stage-a: #FFFFFF; --stage-b: #E9EDF0;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--body); min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red-btn); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip:focus { top: 10px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
/* cambio de tema: fundido de toda la página donde el navegador lo permite; si no, se animan los colores */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); mix-blend-mode: normal; }
html.theme-vt, html.theme-vt * { transition: none !important; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, stroke .45s ease, box-shadow .45s ease !important;
}

/* ---------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: var(--r-sm); border: 1px solid transparent; font: 600 15px var(--body); text-decoration: none; cursor: pointer;
  touch-action: manipulation; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .08s ease; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red-btn); color: #fff; font-weight: 700; }
.btn-red:hover { background: var(--red-hover); }
.btn-line { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; font-weight: 700; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn.busy { opacity: .6; cursor: default; pointer-events: none; }
.btn.done { background: var(--ok); color: #06261b; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; flex: none;
  transition: border-color .15s ease, background .15s ease;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- encabezado */
.top { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { height: var(--top-h); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo .brand-logo { height: 48px; width: auto; display: block; }
.logo .brand-logo .logo-ink { fill: var(--ink); }
.logo .brand-logo .logo-red { fill: #E74C3C; }
.logo img { height: 34px; width: auto; }
.logo .brand-name { font: 700 18px var(--head); letter-spacing: .16em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 14.5px; transition: color .15s ease, background .15s ease; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn .badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--red-btn); color: #fff; font: 700 11.5px/20px var(--mono); text-align: center; display: none;
}
.cart-btn .badge.show { display: block; }
.cart-btn.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.12); } }
.theme-toggle .sun, :root[data-theme="light"] .theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
.menu-btn { display: none; }
.mnav { display: none; }
@media (max-width: 900px) {
  :root { --top-h: 58px; }
  .nav { display: none; }
  .top .wrap { gap: 12px; }
  .top-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .mnav { display: block; position: fixed; top: var(--top-h); left: 0; right: 0; z-index: 39; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; box-shadow: 0 16px 30px var(--shadow); }
  .mnav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .18s ease, transform .18s ease; }
  .mnav a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
  .mnav a:last-child { border-bottom: none; }
  .logo .brand-logo { height: 42px; }
}

/* ---------- secciones */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font: 600 12px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-head h2 { font: 600 clamp(24px, 3vw, 32px)/1.2 var(--head); margin: 0; letter-spacing: -.01em; }
.sec-head p { color: var(--ink-soft); margin: 8px 0 0; max-width: 560px; }
.link-more { color: var(--red); text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
@media (max-width: 620px) { .section { padding: 48px 0; } .wrap { padding: 0 16px; } .sec-head { margin-bottom: 20px; } }

/* ---------- portada */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-deep); }
.hero::before {  /* cuadrícula de la marca, como en el panel */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font: 700 clamp(34px, 5vw, 56px)/1.08 var(--head); margin: 0 0 18px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { color: var(--ink-soft); font-size: 17px; max-width: 520px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-stats b { display: block; font: 600 26px var(--mono); color: var(--ink); }
.hero-stats span { color: var(--ink-soft); font-size: 13.5px; }
.hero-art { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 6 / 5; }
.hero-tile { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.hero-tile:first-child { grid-row: span 2; }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hero-tile:hover img { transform: scale(1.04); }
.hero-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(8,12,18,.86)); color: #fff; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.hero-tile figcaption span:first-child { font-weight: 600; font-size: 14px; }
.hero-tile figcaption span:last-child { font: 600 13.5px var(--mono); color: #FF8A80; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { aspect-ratio: 16 / 11; }
}
@media (max-width: 620px) {
  .hero-lead { font-size: 15.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stats { gap: 20px; margin-top: 28px; }
  .hero-stats b { font-size: 21px; }
  .hero-art { gap: 10px; }
}

/* ---------- tarjetas de producto */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; min-width: 0;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 14px 30px var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-media .none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 13px; }
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font: 600 11.5px var(--body); background: rgba(13,19,27,.84); color: #fff; letter-spacing: 0; }
.tag svg { width: 13px; height: 13px; }
.tag.red { background: var(--red-btn); }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.card-name { font: 600 16px/1.3 var(--head); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-name a { text-decoration: none; }
.card-name a::after { content: ""; position: absolute; inset: 0; }   /* toda la tarjeta lleva al producto */
.card { position: relative; }
.card-price { font: 600 17px var(--mono); color: var(--red); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-price s { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.avail.yes { color: var(--ok); }
.avail.yes::before { background: var(--ok); }
.dots { display: flex; gap: 4px; align-items: center; min-height: 16px; }
.dots .sw { width: 14px; height: 14px; }
.dots small { color: var(--ink-soft); font-size: 12px; margin-left: 4px; }
.card-actions { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; position: relative; z-index: 1; }
.card-actions .btn { flex: 1; min-height: 40px; padding: 0 10px; font-size: 14px; }
@media (max-width: 620px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 10px 12px; gap: 4px; }
  .card-name { font-size: 14px; }
  .card-price { font-size: 15px; }
  .avail { font-size: 11.5px; align-items: flex-start; }
  .avail::before { margin-top: 5px; }
  .card-actions { flex-direction: column; gap: 6px; }
  .card-actions .btn { min-height: 40px; font-size: 13.5px; }
  .tag { font-size: 10.5px; padding: 3px 7px; }
}
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.row-scroll > * { scroll-snap-align: start; }
@media (max-width: 620px) { .row-scroll { grid-auto-columns: 62%; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; } }

/* muestras de color */
.sw { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 1px var(--line-strong); display: inline-block; }
.sw.big { width: 36px; height: 36px; }

/* ---------- categorías */
.cats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.cat-tile { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: pointer; padding: 0; text-align: left; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(8,12,18,.88)); color: #fff; display: flex; justify-content: space-between; align-items: baseline; }
.cat-tile b { font: 600 15.5px var(--head); }
.cat-tile small { font: 500 12px var(--mono); opacity: .8; }
@media (max-width: 620px) { .cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- catálogo: buscador y filtros */
.shop { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.shop > * { min-width: 0; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 12px; color: var(--ink-soft); }
.search:focus-within { border-color: var(--ink); }
.search svg { width: 17px; height: 17px; flex: none; }
.search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 16px; padding: 11px 0; color: var(--ink); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.select {
  appearance: none; -webkit-appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238C96A2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 11px 34px 11px 12px; font-size: 14.5px; cursor: pointer; color: var(--ink); min-height: 46px;
}
.filters-btn { display: none; }
.filters { position: sticky; top: calc(var(--top-h) + 16px); display: flex; flex-direction: column; gap: 22px; }
.f-group h3 { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }
.f-list { display: flex; flex-direction: column; gap: 2px; }
.f-opt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-sm); cursor: pointer; font-size: 14.5px; color: var(--ink); }
.f-opt:hover { background: var(--surface); }
.f-opt input { accent-color: var(--red-btn); width: 16px; height: 16px; margin: 0; flex: none; }
.f-opt small { margin-left: auto; font: 500 12px var(--mono); color: var(--ink-soft); }
.f-price { display: flex; gap: 8px; align-items: center; }
.f-price input { width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 9px 10px; font-size: 15px; color: var(--ink); }
.f-price input:focus { outline: none; border-color: var(--ink); }
.f-price span { color: var(--ink-soft); }
.f-foot { display: none; }
.active-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 0; margin-bottom: 14px; }
.active-row:empty { display: none; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 13px; cursor: pointer; color: var(--ink); }
.chip-x:hover { border-color: var(--red); }
.chip-x b { font-size: 15px; line-height: 1; color: var(--ink-soft); }
.clear-all { background: none; border: none; color: var(--red); font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 6px 4px; }
.result-count { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 14px; }
.empty-state { text-align: center; padding: 56px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--ink-soft); }
.empty-state h3 { font: 600 18px var(--head); color: var(--ink); margin: 0 0 6px; }
.empty-state .btn { margin-top: 16px; }
.card.hide { display: none; }
@media (max-width: 900px) {
  .shop { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filters-btn { display: inline-flex; }
  .filters-btn .n { background: var(--red-btn); color: #fff; border-radius: 999px; font: 700 11px/18px var(--mono); min-width: 18px; padding: 0 5px; }
  .filters-btn .n:empty { display: none; }
  .filters { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70; max-height: 86vh; overflow-y: auto; background: var(--surface);
    border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s; box-shadow: 0 -10px 40px var(--shadow); }
  .filters.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .f-head { display: flex !important; }
  .f-foot { display: flex; gap: 10px; z-index: 2; position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); background: var(--surface); padding: 12px 0 0; }
  .f-foot .btn { flex: 1; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .search { flex: 1 1 100%; }
  .toolbar .filters-btn, .toolbar .select { flex: 1 1 0; min-width: 0; }
}
.f-head { display: none; justify-content: space-between; align-items: center; }
.f-head h2 { font: 600 19px var(--head); margin: 0; }
.scrim { position: fixed; inset: 0; background: var(--overlay); z-index: 65; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.scrim.open { opacity: 1; visibility: visible; transition: opacity .2s ease; }

/* ---------- personalizados, cómo comprar, preguntas */
.custom-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; position: relative; overflow: hidden; }
.custom-band h2 { font: 600 clamp(24px, 3vw, 32px)/1.2 var(--head); margin: 0 0 12px; }
.custom-band p { color: var(--ink-soft); margin: 0 0 22px; }
.custom-band .hero-cta { gap: 10px; }
.custom-band img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 1px solid var(--line); }
@media (max-width: 900px) { .custom-band { grid-template-columns: 1fr; padding: 24px; gap: 24px; } }
/* carrusel de ejemplos */
.carousel { position: relative; min-width: 0; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline-offset: 3px; }
.car-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; text-decoration: none; }
.custom-band .car-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: none; border-radius: 0; }
.car-slide span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(8,12,18,.82)); color: #fff; font: 600 14px var(--body); }
.car-nav { position: absolute; top: calc(50% - 32px); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--glass); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .15s ease; }
.car-nav:hover { border-color: var(--ink); }
.car-nav svg { width: 18px; height: 18px; }
.car-nav.prev { left: 10px; } .car-nav.next { right: 10px; }
.car-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.car-dots button { position: relative; width: 8px; height: 8px; padding: 0; border-radius: 999px; border: none; background: var(--line-strong); cursor: pointer; transition: width .2s ease, background .2s ease; }
.car-dots button[aria-current="true"] { width: 22px; background: var(--red-btn); }
.car-dots button::after { content: ""; position: absolute; inset: -10px -4px; }   /* el toque cuenta aunque el punto sea chico */
@media (max-width: 620px) { .car-nav { width: 36px; height: 36px; top: calc(50% - 30px); } }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font: 600 13px var(--mono); color: var(--red); margin-bottom: 14px; letter-spacing: .1em; }
.steps h3 { font: 600 16px var(--head); margin: 0 0 6px; }
.steps p { color: var(--ink-soft); font-size: 14px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pay { margin-top: 16px; display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.pay h3 { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.pay-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-list li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 14px; font-weight: 500; }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font: 500 16px var(--head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 24px var(--mono); color: var(--red); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 0 0 18px; max-width: 700px; }

/* ---------- pie / contacto */
.foot { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot h2 { font: 600 22px var(--head); margin: 0 0 10px; }
.foot h3 { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 4px 0 12px; }
.foot p { color: var(--ink-soft); margin: 0 0 18px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot ul a { color: var(--ink); text-decoration: none; }
.foot ul a:hover { color: var(--red); }
.foot-contact { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- página de producto */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-soft); margin: 24px 0 18px; }
.crumbs a { text-decoration: none; color: var(--ink-soft); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink); }
.pd { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 44px; align-items: start; padding-bottom: 64px; }
.pd-media { position: sticky; top: calc(var(--top-h) + 16px); min-width: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.seg button { border: none; background: none; padding: 7px 16px; border-radius: 999px; font: 600 13.5px var(--body); color: var(--ink-soft); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button svg { width: 15px; height: 15px; }
.seg button[aria-selected="true"] { background: var(--surface-3); color: var(--ink); }
.stage { position: relative; aspect-ratio: 1 / 1; max-height: 72vh; width: 100%; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 38%, var(--stage-a), var(--stage-b) 72%); }
.stage.night { background: radial-gradient(circle at 50% 40%, #1a2230, #05080c); }
.stage [hidden] { display: none !important; }
.stage[data-view="photo"] .stage-bar, .stage[data-view="photo"] .stage-hint, .stage[data-view="photo"] #stageMsg { display: none !important; }
.stage-canvas { position: absolute; inset: 0; }
.stage-photo { position: absolute; inset: 0; background: var(--surface-2); }
.stage-photo img { width: 100%; height: 100%; object-fit: contain; }
.stage-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; color: var(--ink-soft); font-size: 14px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-hint { position: absolute; left: 14px; top: 14px; padding: 6px 11px; border-radius: 999px; background: var(--glass); font-size: 12.5px; color: var(--ink-soft); pointer-events: none; transition: opacity .4s ease; }
.stage-hint.gone { opacity: 0; }
.stage-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; align-items: flex-end; justify-content: space-between; pointer-events: none; }
.stage-bar > * { pointer-events: auto; }
.stage-left { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass); color: var(--ink); font: 600 13px var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; backdrop-filter: blur(6px); }
.pill:hover { border-color: var(--ink); }
.pill.red { background: var(--red-btn); border-color: var(--red-btn); color: #fff; }
.pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.zoom { display: flex; flex-direction: column; border-radius: 999px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--glass); backdrop-filter: blur(6px); }
.zoom button { width: 40px; height: 38px; border: none; background: none; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.zoom button + button { border-top: 1px solid var(--line); }
.zoom button:hover { background: var(--surface-2); }
.zoom svg { width: 17px; height: 17px; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.thumbs button { flex: 0 0 64px; aspect-ratio: 4 / 5; padding: 0; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t3d { display: flex; align-items: center; justify-content: center; font: 700 13px var(--mono); color: var(--ink); }
.pd-info { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pd-info h1 { font: 600 clamp(26px, 3.2vw, 34px)/1.15 var(--head); margin: 4px 0 0; letter-spacing: -.01em; }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pd-price b { font: 600 30px var(--mono); color: var(--red); }
.pd-price s { color: var(--ink-soft); font: 400 16px var(--mono); }
.pd-desc { color: var(--ink-soft); margin: 0; font-size: 15.5px; }
.box { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.box-title { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0; display: flex; justify-content: space-between; gap: 8px; }
.box-title em { font: 500 12.5px var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); font-style: normal; text-align: right; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 500 13px var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.swatches button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px 6px; border-radius: var(--r-sm); border: 1px solid transparent; background: none; color: var(--ink); cursor: pointer; font-size: 11.5px; line-height: 1.15; text-align: center; }
.swatches button:hover { background: var(--surface-2); }
.swatches button[aria-pressed="true"] { border-color: var(--red); background: var(--surface-2); }
.swatches .enc .sw { outline: 2px dashed var(--line-strong); outline-offset: 2px; }
.sw-sep { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-soft); padding: 4px 2px 0; }
.sw-sep b { color: var(--ink); }
.more-colors { background: none; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); color: var(--ink); padding: 9px; cursor: pointer; font-size: 13.5px; width: 100%; }
.more-colors:hover { border-color: var(--ink); }
.locked { font-size: 13.5px; color: var(--ink-soft); padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); }
.locked b { color: var(--ink); }
.input, .pd-info select { width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 11px 12px; font-size: 16px; color: var(--ink); }
.input:focus { outline: none; border-color: var(--ink); }
textarea.input { resize: vertical; min-height: 76px; }
.msg { font-size: 13px; color: var(--red); min-height: 0; margin: 0; }
.msg:empty { display: none; }
.msg.soft { color: var(--ink-soft); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.chips button { border: 1px solid var(--line-strong); background: transparent; border-radius: var(--r-sm); padding: 9px 6px; min-height: 40px; cursor: pointer; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt-group.missing .chips button { border-color: var(--red); }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn-red { flex: 1; min-height: 52px; font-size: 16px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); flex: none; }
.stepper button { width: 42px; height: 50px; border: none; background: var(--surface-2); color: var(--ink); font-size: 20px; cursor: pointer; touch-action: manipulation; }
.stepper button:hover { background: var(--surface-3); }
.stepper button:disabled { opacity: .4; cursor: default; }
.stepper output { min-width: 40px; text-align: center; font: 500 15px var(--mono); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 14.5px; }
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; }
.specs a { color: var(--ink); }
.pd-share { align-self: flex-start; background: none; border: none; color: var(--ink-soft); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 4px 0; font-size: 14px; }
.pd-share:hover { color: var(--ink); }
.pd-share svg { width: 16px; height: 16px; }
.custom-box summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.custom-box summary::-webkit-details-marker { display: none; }
.custom-box summary::after { content: "+"; font: 400 22px var(--mono); color: var(--red); }
.custom-box[open] summary::after { content: "−"; }
.custom-box[open] summary { margin-bottom: 12px; }
.custom-box .stack { display: flex; flex-direction: column; gap: 10px; }
.custom-box p { margin: 0; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; gap: 24px; padding-bottom: 40px; }
  .pd-media { position: static; }
  .stage { aspect-ratio: auto; height: min(56vh, 100vw); max-height: none; }
  .crumbs { margin: 16px 0 12px; }
}

/* ---------- pedido (carrito) */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(440px, 100vw); background: var(--surface); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; box-shadow: -16px 0 40px var(--shadow); }
.drawer.open { transform: none; visibility: visible; transition: transform .25s ease; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font: 600 19px var(--head); margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 18px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.line { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img, .line .ph { width: 58px; aspect-ratio: 4 / 5; border-radius: var(--r-sm); object-fit: cover; background: var(--surface-2); }
.line-name { font-weight: 600; font-size: 14.5px; text-decoration: none; display: block; }
.line-name:hover { color: var(--red); }
.line-opts { color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }
.line-unit { color: var(--ink-soft); font: 400 12.5px var(--mono); margin-top: 4px; }
.line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-sub { font: 600 14.5px var(--mono); color: var(--ink); }
.line .stepper button { width: 32px; height: 34px; font-size: 16px; }
.line .stepper output { min-width: 28px; font-size: 14px; }
.line-del { background: none; border: none; color: var(--red); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; padding: 4px 0; }
.line-del:hover { text-decoration: underline; text-underline-offset: 3px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.total span:last-child { font: 600 24px var(--mono); color: var(--red); }
.cart-empty { text-align: center; padding: 56px 12px; color: var(--ink-soft); }
.cart-empty svg { width: 46px; height: 46px; margin: 0 auto 12px; opacity: .5; display: block; }
.cart-empty h3 { color: var(--ink); font: 600 17px var(--head); margin: 0 0 6px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 5px; }
.note { color: var(--ink-soft); font-size: 12.5px; text-align: center; margin: 0; line-height: 1.45; }
@media (max-width: 620px) {
  .drawer { top: auto; left: 0; width: 100vw; max-height: 92vh; border-left: none; border-radius: var(--r-lg) var(--r-lg) 0 0; transform: translateY(100%); }
}
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--glass); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: none; }
.cartbar button { width: 100%; height: 50px; border-radius: var(--r-sm); border: none; background: var(--red-btn); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; font: 700 15.5px var(--body); cursor: pointer; }
.cartbar button span:last-child { font-family: var(--mono); }
@media (max-width: 900px) { .cartbar.show { display: block; } body.has-bar { padding-bottom: 74px; } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  background: var(--ink); color: var(--bg); border-radius: var(--r); padding: 10px 10px 10px 16px; display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: 14.5px; box-shadow: 0 12px 30px var(--shadow); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast span { flex: 1; min-width: 0; }
@media (max-width: 620px) { .toast { width: calc(100vw - 32px); } }
.toast button { background: var(--red-btn); color: #fff; border: none; border-radius: var(--r-sm); padding: 8px 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
@media (max-width: 900px) { body.has-bar .toast { bottom: 86px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* promo por cantidad en el pedido */
.promo-line { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.promo-line div { display: flex; justify-content: space-between; gap: 10px; }
.promo-line b { color: var(--ok); font-family: var(--mono); }
.promo-line small { color: var(--ink-soft); font-size: 12.5px; }

/* texto del cliente */
.text-box { border-color: var(--line-strong); }
.tx-help { margin: 0; color: var(--ink-soft); font-size: 14px; }
.tx-sub { margin: 0 0 6px; font-size: 12.5px; color: var(--ink-soft); }
.tx-same { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.tx-same input { accent-color: var(--red-btn); width: 16px; height: 16px; }
#txInputs { display: flex; flex-direction: column; gap: 8px; }
.tx-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.tx-colors button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; background: none; padding: 3px; cursor: pointer; }
.tx-colors button[aria-pressed="true"] { border-color: var(--red); }
.tx-colors .sw { width: 26px; height: 26px; }
.tx-go { display: flex; flex-direction: column; gap: 8px; }
