/* =========================================================
   Reboot Store — estilos
   Concepto: banco de pruebas. El anillo de encendido del logo
   es el único motivo gráfico: hero, medidores y carga.
   ========================================================= */

:root {
  --ink: #2A2C30;          /* grafito del logo */
  --ink-2: #44474E;
  --paper: #ECEEF1;        /* gris frío de mesa de taller */
  --paper-2: #E2E5E9;
  --surface: #FFFFFF;
  --line: #D5D9DF;
  --steel: #5B616A;        /* texto secundario, 5.3:1 sobre paper */
  --standby: #FFA51F;      /* LED ámbar de espera */
  --on: #17B26A;           /* LED verde de encendido */
  --on-ink: #0E7A49;

  --g-exh-bg: #2A2C30; --g-exh-fg: #FFFFFF;
  --g-ap-bg: #DCF2E7;  --g-ap-fg: #0B6B40;
  --g-a-bg: #E1EAF8;   --g-a-fg: #1D4F9E;
  --g-b-bg: #FFEBCC;   --g-b-fg: #7A4A00;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wide: 125%;
  --r-xl: 28px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --pad: clamp(16px, 3.2vw, 40px);
  --max: 1320px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-pop: 0 18px 50px -18px rgba(42, 44, 48, .35), 0 2px 6px rgba(42, 44, 48, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.icon { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--standby); outline-offset: 2px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-stretch: 110%; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--ghost { border-color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 0; background: transparent;
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--paper-2); }

.link-btn { border: 0; background: none; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; color: var(--steel); font-size: .9rem; }
.link-btn:hover { color: var(--ink); }

/* ---------- Encabezado ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  height: var(--header-h);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 3vw, 40px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; min-width: 40px; height: auto; flex: none; }
.brand__word { display: flex; flex-direction: column; font-weight: 850; font-stretch: var(--wide); font-size: 1.15rem; line-height: .9; letter-spacing: .01em; text-transform: uppercase; }
.brand__word small { font-size: .56rem; font-weight: 700; letter-spacing: .34em; margin-top: 4px; color: var(--steel); }

/* ---------- Búsqueda ---------- */
.search { position: relative; max-width: 640px; width: 100%; justify-self: center; }
.search__field {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 12px 0 18px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.search__field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(42, 44, 48, .08); }
.search__field .icon { color: var(--steel); }
.search__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; }
.search__field input::-webkit-search-cancel-button { cursor: pointer; }
.search__kbd { font: 600 .75rem var(--font); color: var(--steel); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.search__field:focus-within .search__kbd { display: none; }

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
  padding: 8px; max-height: min(70vh, 560px); overflow: auto;
  transform-origin: top center; animation: pop .18s var(--ease);
}
.suggest__group + .suggest__group { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.suggest__title { font-size: .8rem; color: var(--steel); padding: 6px 10px 4px; }
.suggest__item {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  width: 100%; padding: 6px 10px; border: 0; background: none; border-radius: var(--r-md); text-align: left;
}
.suggest__item img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; background: var(--paper); }
.suggest__item strong { display: block; font-weight: 650; font-size: .95rem; }
.suggest__item small { color: var(--steel); font-size: .8rem; }
.suggest__item .suggest__price { font-weight: 700; font-size: .95rem; }
.suggest__item[aria-selected="true"], .suggest__item:hover { background: var(--paper); }
.suggest__item mark { background: #FFE2B3; color: inherit; border-radius: 3px; padding: 0 1px; }
.suggest__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 8px; }
.suggest__all { display: block; width: 100%; padding: 10px; border: 0; background: none; border-radius: var(--r-md); font-weight: 650; text-align: left; }
.suggest__all:hover, .suggest__all[aria-selected="true"] { background: var(--paper); }
.suggest__none { padding: 14px 10px; color: var(--steel); }

/* ---------- Carrito (botón) ---------- */
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 18px 0 16px; border-radius: 999px;
  border: 0; background: var(--ink); color: #fff; font-weight: 650;
}
.cart-btn:hover { background: #000; }
.cart-btn__count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, .16); font-size: .82rem; font-weight: 750;
  transition: background-color .3s, color .3s;
}
.cart-btn__count:not([data-count="0"]) { background: var(--standby); color: var(--ink); }
.cart-btn.is-bump { animation: bump .5s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) var(--pad) 0;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "copy reactor" "cats cats";
  column-gap: clamp(24px, 4vw, 64px); row-gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__copy { grid-area: copy; }
.hero__title {
  font-size: clamp(2.7rem, 6.4vw, 6.1rem);
  font-weight: 820; font-stretch: var(--wide);
  line-height: .92; letter-spacing: -.028em;
  text-wrap: balance;
  max-width: 12ch;
  animation: boot-type 1.1s var(--ease) both .1s;
}
.hero__lead { margin-top: 28px; max-width: 52ch; font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.6; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Reactor: anillo de encendido con el producto destacado */
.reactor { grid-area: reactor; display: grid; justify-items: center; gap: 18px; }
.reactor__stage { position: relative; width: clamp(260px, 34vw, 440px); aspect-ratio: 1; }
.reactor__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 9; }
.ring-fill {
  fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 86 200; stroke-dashoffset: 86;
  transform: rotate(-64deg); transform-origin: 100px 104px;
}
.ring-tick { stroke: var(--ink); stroke-width: 10; stroke-linecap: round; }
.reactor__led {
  position: absolute; top: 3%; left: calc(50% + 20px);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--standby); box-shadow: 0 0 0 4px color-mix(in srgb, var(--standby) 25%, transparent), 0 0 14px var(--standby);
  transition: background-color .3s, box-shadow .3s;
}
.reactor__led.is-on { background: var(--on); box-shadow: 0 0 0 4px color-mix(in srgb, var(--on) 22%, transparent), 0 0 14px var(--on); }
.reactor__screen {
  position: absolute; inset: 15% 13% 11% 13%;
  border: 0; padding: 0; border-radius: 50%; overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(42, 44, 48, .06);
}
.reactor__screen img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.reactor__screen::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(42, 44, 48, .18));
}
.reactor__caption { text-align: center; min-height: 104px; }
.reactor__status { font-size: .85rem; color: var(--steel); display: inline-flex; align-items: center; gap: 6px; }
.reactor__name { font-weight: 750; font-stretch: 112%; font-size: 1.25rem; margin-top: 2px; }
.reactor__price { font-size: 1rem; color: var(--ink-2); margin-top: 2px; }
.reactor__price s { color: var(--steel); margin-left: 6px; }
.reactor__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.reactor__dots button {
  width: 28px; height: 6px; border-radius: 3px; border: 0; padding: 0;
  background: var(--line); position: relative; overflow: hidden;
}
.reactor__dots button[aria-selected="true"] { background: var(--ink); }

/* Categorías */
.cats { grid-area: cats; }
.cats__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cat {
  width: 100%; height: 100%;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px;
  padding: 20px 22px; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--r-lg); background: transparent;
  transition: background-color .2s, border-color .2s, color .2s;
}
.cat svg { grid-row: span 2; width: 44px; height: 44px; }
.cat__name { font-weight: 720; font-stretch: 108%; font-size: 1.05rem; line-height: 1.2; }
.cat__meta { font-size: .85rem; color: var(--steel); }
.cat:hover { background: var(--surface); border-color: var(--ink); }
.cat[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat[aria-pressed="true"] .cat__meta { color: rgba(255, 255, 255, .72); }

/* ---------- Beneficios ---------- */
.perks { margin-top: clamp(40px, 6vw, 72px); background: var(--ink); color: rgba(255, 255, 255, .78); }
.perks ul {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--pad);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 32px;
  font-size: .92rem;
}
.perks strong { color: #fff; font-weight: 700; }

/* ---------- Catálogo ---------- */
.shop { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--pad); }
.shop__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.shop__head h2, .process h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 820; font-stretch: var(--wide); letter-spacing: -.02em; }
.shop__count { color: var(--steel); }
.shop__layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }

/* Filtros */
.filters {
  position: sticky; top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px); overflow: auto;
  padding-right: 8px; scrollbar-width: thin;
}
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters__head h3 { font-size: 1.1rem; font-weight: 750; }
.filters__close, .filters__apply { display: none; }
.fgroup { padding: 18px 0; border-top: 1px solid var(--line); }
.fgroup legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.fgroup legend + * { clear: both; }

.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: .95rem; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.5px solid #A9AFB8; background: var(--surface);
  display: grid; place-items: center; transition: background-color .15s, border-color .15s;
}
.check__box::after { content: ""; width: 10px; height: 6px; border: 2.2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s var(--ease); }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check__box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--standby); outline-offset: 2px; }
.check__count { margin-left: auto; color: var(--steel); font-size: .82rem; }
.check__hint { display: block; color: var(--steel); font-size: .8rem; line-height: 1.35; }
.check--stack { align-items: flex-start; }
.check--stack .check__box { margin-top: 2px; }
.check.is-empty { opacity: .45; }

.price__out { display: flex; justify-content: space-between; font-weight: 650; font-size: .95rem; margin-bottom: 8px; }
.price__rail { position: relative; height: 28px; }
.price__rail::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--line); }
.price__rail input {
  position: absolute; inset: 0; width: 100%; margin: 0; background: none;
  -webkit-appearance: none; appearance: none; pointer-events: none;
}
.price__rail input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--ink); cursor: grab; }
.price__rail input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--ink); cursor: grab; }
.price__rail input::-webkit-slider-runnable-track { background: none; }
.price__fill { position: absolute; top: 12px; height: 4px; border-radius: 2px; background: var(--ink); pointer-events: none; }

.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: .85rem; font-weight: 550; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .icon { width: 14px; height: 14px; }

/* Barra de herramientas */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; min-height: 44px; }
.toolbar__filters { display: none; }
.active { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.active .chip { background: var(--surface); border-color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: .9rem; color: var(--steel); }
.sort select {
  height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232A2C30' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none; appearance: none; color: var(--ink); font-weight: 600; cursor: pointer;
}
.badge[hidden] { display: none; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--standby); color: var(--ink); font-size: .75rem; font-weight: 750; display: inline-grid; place-items: center; }

/* Tarjetas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  border: 1.5px solid transparent; transition: border-color .2s;
  animation: card-in .45s var(--ease) both;
}
.card:hover { border-color: var(--ink); }
.card__media { position: relative; display: block; width: 100%; border: 0; padding: 0; background: var(--paper-2); aspect-ratio: 5 / 4; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .grade { position: absolute; top: 10px; left: 10px; }
.card__flag { position: absolute; bottom: 10px; left: 10px; font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--standby); color: var(--ink); }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card__brand { font-size: .8rem; color: var(--steel); }
.card__name { font-size: 1.08rem; font-weight: 720; font-stretch: 106%; line-height: 1.2; }
.card__name button { all: unset; cursor: pointer; }
.card__name button:focus-visible { outline: 3px solid var(--standby); outline-offset: 2px; border-radius: 4px; }
.card__variant { font-size: .85rem; color: var(--steel); }
.card__meters { display: flex; align-items: center; gap: 14px; margin: 10px 0 4px; font-size: .8rem; color: var(--ink-2); }
.meter { display: inline-flex; align-items: center; gap: 6px; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.price-tag { display: flex; flex-direction: column; line-height: 1.15; }
.price-tag strong { font-size: 1.3rem; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; }
.price-tag s { font-size: .82rem; color: var(--steel); }
.price-tag .save { font-size: .78rem; color: var(--on-ink); font-weight: 650; }
.add-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 650; font-size: .88rem;
  transition: background-color .2s, transform .15s;
}
.add-btn:hover { background: #000; }
.add-btn:active { transform: scale(.95); }
.add-btn.is-added { background: var(--on-ink); }
.add-btn .icon { width: 16px; height: 16px; }

/* Estado / grado */
.grade { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.grade--exh { background: var(--g-exh-bg); color: var(--g-exh-fg); }
.grade--ap { background: var(--g-ap-bg); color: var(--g-ap-fg); }
.grade--a { background: var(--g-a-bg); color: var(--g-a-fg); }
.grade--b { background: var(--g-b-bg); color: var(--g-b-fg); }

/* Mini anillo */
.ring { width: 26px; height: 26px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .ring__bg { stroke: var(--paper-2); }
.ring .ring__val { stroke: var(--on); stroke-linecap: round; }
.ring--warn .ring__val { stroke: var(--standby); }

/* Placeholder cuando falla una foto */
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: #9AA0A9; background: var(--paper-2); }
.ph svg { width: 34%; height: auto; }

.empty { text-align: center; padding: 64px 16px; background: var(--surface); border-radius: var(--r-lg); display: grid; gap: 10px; justify-items: center; }
.empty__title { font-weight: 750; font-size: 1.2rem; }
.empty .btn { margin-top: 10px; }

/* ---------- Proceso ---------- */
.process { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 5vw, 64px) var(--pad) clamp(56px, 8vw, 104px); }
.process__lead { margin-top: 14px; color: var(--ink-2); max-width: 56ch; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--line); }
.step { position: relative; padding-right: 12px; }
.step__n {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--ink); font-weight: 800; font-stretch: var(--wide);
}
.step:last-child .step__n { background: var(--ink); color: #fff; }
.step h3 { margin-top: 18px; font-size: 1.15rem; font-weight: 750; font-stretch: 110%; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; max-width: 34ch; }

.grades { margin-top: clamp(40px, 6vw, 64px); background: var(--surface); border-radius: var(--r-xl); padding: clamp(22px, 3.5vw, 40px); }
.grades h3 { font-size: 1.3rem; font-weight: 750; font-stretch: 110%; }
.grades dl { margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grades dd { margin: 10px 0 0; color: var(--ink-2); font-size: .93rem; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .74); }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad) 32px; display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start; }
.footer__logo { width: 120px; height: auto; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.footer li { padding: 4px 0; font-size: .93rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__note { max-width: var(--max); margin: 0 auto; padding: 20px var(--pad) 40px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .58); }

/* ---------- Diálogos ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(30, 32, 36, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog[open] { animation: pop .28s var(--ease); }
dialog[open]::backdrop { animation: fade .28s ease; }
body.is-locked { overflow: hidden; }

/* Ficha de producto */
.sheet { width: min(1060px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border-radius: var(--r-xl); overflow: hidden; }
.sheet__body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); max-height: calc(100vh - 48px); }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 3; background: var(--surface); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.gallery { background: var(--paper-2); display: flex; flex-direction: column; min-height: 0; }
.gallery__main { position: relative; flex: 1; min-height: 320px; overflow: hidden; }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fade .35s ease; }
.gallery__thumbs { display: flex; gap: 8px; padding: 12px; }
.gallery__thumbs button { width: 64px; height: 64px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--surface); opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--ink); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__credit { padding: 0 14px 12px; font-size: .74rem; color: var(--steel); }
.gallery__credit a { color: inherit; }

.pd { padding: clamp(22px, 3vw, 36px); overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.pd__top { display: flex; align-items: center; gap: 10px; color: var(--steel); font-size: .9rem; padding-right: 44px; }
.pd__rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: 650; }
.pd__rating .icon { width: 15px; height: 15px; color: var(--standby); }
.pd h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 820; font-stretch: 118%; letter-spacing: -.02em; }
.pd__variant { color: var(--ink-2); margin-top: -8px; }
.pd__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; }
.pd__price strong { font-size: 2rem; font-weight: 820; font-stretch: 112%; }
.pd__price s { color: var(--steel); }
.pd__price .save { color: var(--on-ink); font-weight: 700; background: var(--g-ap-bg); padding: 3px 9px; border-radius: 6px; font-size: .88rem; }
.pd__desc { color: var(--ink-2); max-width: 60ch; }

.diag { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.diag__item { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r-md); background: var(--paper); }
.diag__item .ring { width: 40px; height: 40px; flex: none; }
.diag__item .ring circle { stroke-width: 4.5; }
.diag__item .ring .ring__val { transition: stroke-dashoffset 1s var(--ease) .15s; }
.diag__label { font-size: .78rem; color: var(--steel); line-height: 1.25; }
.diag__value { font-weight: 750; font-size: 1rem; line-height: 1.2; }

.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: .93rem; }
.specs dt { color: var(--steel); }
.specs dd { margin: 0; }
.pd__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd__buy { display: flex; gap: 10px; align-items: center; position: sticky; bottom: -1px; background: var(--surface); padding-top: 8px; }
.pd__buy .btn { flex: 1; }
.pd__stock { font-size: .85rem; color: var(--steel); }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 48px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { background: var(--paper); }
.qty button .icon { width: 16px; height: 16px; }
.qty output { min-width: 26px; text-align: center; font-weight: 700; }
.qty--sm { height: 34px; }
.qty--sm button { width: 32px; }

/* Carrito */
.drawer {
  margin: 0 0 0 auto; height: 100vh; height: 100dvh; max-height: none;
  width: min(440px, 100vw); display: none; flex-direction: column;
}
.drawer[open] { display: flex; animation: slide-in .32s var(--ease); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.4rem; font-weight: 800; font-stretch: 115%; }
.drawer__items { flex: 1; overflow: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--paper); }
.line__name { font-weight: 700; line-height: 1.25; }
.line__meta { font-size: .82rem; color: var(--steel); margin: 2px 0 10px; }
.line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-weight: 750; }
.line__right .icon-btn { width: 34px; height: 34px; color: var(--steel); }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--paper); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 16px; font-size: .95rem; }
.totals .is-total { font-weight: 800; font-size: 1.2rem; font-stretch: 110%; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.ship-meter { margin-bottom: 16px; font-size: .85rem; color: var(--ink-2); }
.ship-meter__bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.ship-meter__bar span { display: block; height: 100%; background: var(--on); border-radius: 3px; transition: width .5s var(--ease); }
.cart-empty { text-align: center; padding: 56px 8px; display: grid; gap: 10px; justify-items: center; color: var(--ink-2); }
.cart-empty strong { color: var(--ink); font-size: 1.1rem; }
.cart-empty .btn { margin-top: 8px; }

/* Pago */
.checkout { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border-radius: var(--r-xl); }
.checkout__body { padding: clamp(22px, 4vw, 36px); position: relative; }
.checkout h2 { font-size: 1.6rem; font-weight: 820; font-stretch: 115%; letter-spacing: -.015em; }
.stepper { display: flex; gap: 8px; margin: 16px 0 24px; font-size: .85rem; color: var(--steel); }
.stepper li { flex: 1; padding-top: 8px; border-top: 3px solid var(--line); }
.stepper li.is-done, .stepper li.is-current { border-top-color: var(--ink); color: var(--ink); font-weight: 650; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.field--full { grid-column: 1 / -1; }
.field input, .field select {
  height: 48px; padding: 0 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); font-weight: 400; font-size: 1rem;
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(42, 44, 48, .08); }
.field input[aria-invalid="true"] { border-color: #C2410C; }
.field__err { color: #B4380B; font-size: .8rem; font-weight: 500; min-height: 1em; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; transition: border-color .15s, background-color .15s; }
.pay-opt:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.pay-opt input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.pay-opt strong { display: block; }
.pay-opt small { color: var(--steel); }
.notice { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--g-b-bg); color: var(--g-b-fg); font-size: .88rem; }
.checkout__summary { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 4px; font-size: .95rem; }
.checkout__summary .is-total { font-weight: 800; font-size: 1.15rem; }
.checkout__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

.boot { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 24px 0 8px; }
.boot svg { width: 120px; height: 120px; }
.boot .ring-fill { stroke-dashoffset: 86; animation: boot-fill 2.1s var(--ease) forwards; }
.boot.is-done .ring-fill { stroke: var(--on); }
.boot__check { opacity: 0; transform: scale(.6); transform-origin: 100px 104px; transition: opacity .3s, transform .4s var(--ease); }
.boot.is-done .boot__check { opacity: 1; transform: scale(1); }
.boot.is-done .ring-tick { stroke: var(--on); }
.boot__msg { font-weight: 700; font-size: 1.1rem; }
.order { margin-top: 8px; width: 100%; text-align: left; background: var(--paper); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 6px; font-size: .93rem; }
.order__row { display: flex; justify-content: space-between; gap: 12px; }
.order__id { font-weight: 800; font-stretch: 115%; font-size: 1.05rem; }

/* Toast y animación de "volar al carrito" */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .93rem;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-pop);
  transition: transform .35s var(--ease), opacity .35s;
  max-width: calc(100vw - 32px);
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on); flex: none; }
.flyer { position: fixed; z-index: 90; border-radius: 50%; overflow: hidden; pointer-events: none; box-shadow: var(--shadow-pop); }
.flyer img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Animaciones ---------- */
@keyframes boot-type {
  0% { font-variation-settings: "wdth" 62, "wght" 300; opacity: 0; letter-spacing: .02em; }
  40% { opacity: 1; }
  100% { font-variation-settings: "wdth" 125, "wght" 820; opacity: 1; }
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.12); } 60% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes boot-fill { 0% { stroke-dashoffset: 86; } 60% { stroke-dashoffset: 20; } 100% { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: .25; } }
.is-blinking { animation: blink .5s steps(2) infinite; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .cats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grades dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .shop__layout { grid-template-columns: minmax(0, 1fr); }
  .toolbar__filters { display: inline-flex; }
  .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 70; top: 0;
    width: min(360px, 88vw); max-height: none; height: 100dvh;
    background: var(--paper); padding: 20px 20px 20px;
    transform: translateX(-102%); transition: transform .32s var(--ease);
    box-shadow: var(--shadow-pop);
  }
  .filters.is-open { transform: none; }
  .filters__close { display: inline-grid; }
  .filters__head { gap: 12px; }
  .filters__head h3 { margin-right: auto; }
  .filters__apply { display: flex; position: sticky; bottom: 0; width: 100%; margin-top: 8px; box-shadow: 0 -12px 20px 4px var(--paper); }
  .scrim { position: fixed; inset: 0; z-index: 65; background: rgba(30, 32, 36, .45); animation: fade .25s; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .steps::before { display: none; }
  .sheet__body { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  .gallery__main { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
  .pd { overflow: visible; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .topbar__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
  .brand__word { display: none; }
  .search__kbd, .cart-btn__label { display: none; }
  .search__field { height: 44px; padding-left: 14px; }
  .cart-btn { height: 44px; padding: 0 12px; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "reactor" "cats"; }
  .hero__title { max-width: none; }
  .reactor__stage { width: min(78vw, 340px); }
  .shop__head { flex-direction: column; gap: 4px; }
  .toolbar { flex-wrap: wrap; }
  .active { order: 3; flex-basis: 100%; }
  .sort span { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 12px; }
  .card__name { font-size: .98rem; }
  .card__meters { gap: 8px; flex-wrap: wrap; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .add-btn { justify-content: center; }
  .price-tag strong { font-size: 1.12rem; }
  .diag { grid-template-columns: minmax(0, 1fr); }
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .sheet, .checkout { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .sheet__body { max-height: 100dvh; }
}

@media (max-width: 420px) {
  .cats__list, .perks ul, .grades dl, .steps { grid-template-columns: minmax(0, 1fr); }
  .cat { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__title { font-variation-settings: "wdth" 125, "wght" 820; }
}
