/* ==========================================================================
   Compumarti · sistema visual
   Paleta neutra cálida, tipografía Inter, superficies limpias y movimiento
   discreto. Sin recursos de terceros.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f5f7;
  --paper-2: #ededf0;
  --surface: #ffffff;
  --surface-2: #fafafb;
  --ink: #16161a;
  --ink-2: #3a3a40;
  --muted: #626269;
  --muted-2: #6b6b72;
  --line: #e4e4e9;
  --line-strong: #d2d2d9;
  --accent: #0b63f6;
  --accent-strong: #084cc4;
  --accent-soft: #edf3ff;
  --ok: #0d7a4f;
  --ok-soft: #e9f8f0;
  --warn: #9a5b00;
  --warn-soft: #fff5e2;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --dark: #121215;
  --dark-2: #1c1c21;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(18, 18, 21, 0.04), 0 8px 24px rgba(18, 18, 21, 0.05);
  --shadow-md: 0 2px 6px rgba(18, 18, 21, 0.05), 0 22px 48px rgba(18, 18, 21, 0.09);
  --shadow-lg: 0 40px 90px rgba(18, 18, 21, 0.16);
  --shell: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

button,
a {
  touch-action: manipulation;
}

.price,
.totals,
.table td,
.summary-row {
  font-variant-numeric: tabular-nums;
}

[id] {
  scroll-margin-top: 80px;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

.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-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.icon {
  flex: none;
  display: block;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.muted {
  color: var(--muted);
}

.fineprint {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.prose {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.75;
}

.prose p + p,
.prose h2 + p {
  margin-top: 12px;
}

.prose h2 {
  margin-top: 30px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.prose ul {
  margin: 14px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------- botones --------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 99, 246, 0.22);
}

.btn--primary:hover {
  background: var(--accent-strong);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: var(--surface);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--soft {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.btn--soft:hover {
  background: #e2ecff;
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: var(--paper);
}

.btn--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn--lg {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 15.5px;
}

.btn--block {
  width: 100%;
}

.btn--grow {
  flex: 1;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: gap 0.18s var(--ease);
}

.link-arrow:hover {
  gap: 11px;
  color: var(--accent);
}

.link-quiet {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-quiet:hover {
  color: var(--ink);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.icon-btn:hover {
  background: rgba(18, 18, 21, 0.06);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn--cart {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.cart-count[data-empty='true'] {
  background: var(--line-strong);
  color: var(--muted);
}

/* -------------------------------- header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 245, 247, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 245, 247, 0.92);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}

.brand__dot {
  color: var(--accent);
}

.brand--light {
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.nav__link:hover,
.nav__link.is-active {
  background: rgba(18, 18, 21, 0.06);
  color: var(--ink);
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.menu-toggle {
  display: none;
}

/* ------------------------------ search layer ----------------------------- */

.search-layer {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 18vh 20px 20px;
  background: rgba(18, 18, 21, 0.35);
  backdrop-filter: blur(8px);
  animation: fade-in 0.2s ease;
}

.search-layer__panel {
  width: min(680px, 100%);
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.search-layer__form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.search-layer__form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.1);
}

.search-layer__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 16px;
}

.search-layer__hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 2px;
  color: var(--muted);
  font-size: 12.5px;
}

.search-layer__hints a {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
}

.search-layer__hints a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* -------------------------------- drawers -------------------------------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(18, 18, 21, 0.38);
  backdrop-filter: blur(2px);
  animation: fade-in 0.2s ease;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  height: 100dvh;
  background: var(--surface);
  box-shadow: -20px 0 60px rgba(18, 18, 21, 0.16);
  transform: translateX(102%);
  transition: transform 0.36s var(--ease);
  overscroll-behavior: contain;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__head h2 {
  font-size: 26px;
}

.cart-drawer__head h2 span {
  color: var(--muted);
  font-weight: 500;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.cart-drawer__foot {
  padding: 18px 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 15px;
}

.cart-total-row strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.cart-drawer__foot .btn {
  margin-top: 14px;
}

.cart-drawer__foot .link-quiet {
  display: block;
  margin-top: 12px;
  text-align: center;
}

.cart-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 64px 12px;
  text-align: center;
}

.cart-empty__icon,
.empty-state__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--muted);
}

.cart-empty h3 {
  font-size: 19px;
}

.cart-empty p {
  max-width: 30ch;
  color: var(--muted);
  font-size: 14px;
}

.cart-empty .btn {
  margin-top: 8px;
}

.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line__media {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.cart-line__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cart-line__body {
  min-width: 0;
}

.cart-line__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.cart-line__meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.cart-line__price {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
}

.cart-line__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.cart-line__remove {
  border: 0;
  background: none;
  padding: 2px;
  color: var(--muted);
}

.cart-line__remove:hover {
  color: var(--danger);
}

.cart-line__warn {
  margin-top: 4px;
  color: var(--danger);
  font-size: 11.5px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}

.stepper button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.stepper button:hover:not(:disabled) {
  background: var(--paper-2);
}

.stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper span {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.menu-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(360px, 92%);
  padding: 20px;
  background: var(--surface);
  box-shadow: 20px 0 60px rgba(18, 18, 21, 0.16);
  transform: translateX(-102%);
  transition: transform 0.36s var(--ease);
  overscroll-behavior: contain;
}

.menu-drawer.is-open {
  transform: translateX(0);
}

.menu-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.menu-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
}

.menu-drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
}

.menu-drawer__nav a:hover {
  color: var(--accent);
}

.menu-drawer__foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.menu-drawer__foot p {
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

/* --------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 500px at 78% 20%, rgba(11, 99, 246, 0.08), transparent 60%),
    linear-gradient(180deg, #fbfbfc 0%, var(--paper) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}

.hero__copy h1 {
  max-width: 13ch;
  font-size: clamp(44px, 6.4vw, 82px);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero__copy h1 span {
  color: var(--muted-2);
}

.hero__copy .lede {
  margin-top: 22px;
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero__proof div {
  display: grid;
  gap: 2px;
}

.hero__proof strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.hero__proof span {
  color: var(--muted);
  font-size: 12.5px;
}

.hero__visual {
  position: relative;
}

.hero__frame {
  position: relative;
  aspect-ratio: 1 / 1.02;
  display: grid;
  place-items: center;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 42%, #ffffff 0%, #f2f3f7 58%, #e9eaf0 100%);
  box-shadow: inset 0 1px 0 #fff, 0 40px 80px rgba(30, 34, 52, 0.12);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 28px 30px rgba(18, 18, 21, 0.12));
  animation: hero-in 0.9s var(--ease) both;
}

.hero__glow {
  position: absolute;
  inset: 10% 12%;
  border-radius: 50%;
  background: rgba(11, 99, 246, 0.14);
  filter: blur(70px);
}

.hero__tag {
  position: absolute;
  display: grid;
  gap: 1px;
  min-width: 118px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(18, 18, 21, 0.1);
  backdrop-filter: blur(12px);
  animation: float-in 0.8s var(--ease) both;
}

.hero__tag span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__tag strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.hero__tag--cpu {
  top: 18%;
  left: -4%;
  animation-delay: 0.18s;
}

.hero__tag--ram {
  right: -4%;
  top: 36%;
  animation-delay: 0.3s;
}

.hero__tag--format {
  bottom: 20%;
  left: 2%;
  animation-delay: 0.42s;
}

.hero__caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.trust-bar {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: 18px;
}

.trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.trust-bar .icon {
  color: var(--accent);
}

/* ------------------------------- secciones -------------------------------- */

.section {
  padding: 76px 0;
}

.section--tint {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section__head h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.04em;
}

.section--related {
  padding-bottom: 0;
}

/* ------------------------------ product grid ------------------------------ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-grid--catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(18, 18, 21, 0.02);
  transition: transform 0.28s var(--ease), box-shadow 0.28s, border-color 0.28s;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 16px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-card__media img {
  transform: scale(1.035);
}

.product-card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(18, 18, 21, 0.07);
}

.badge--stock {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge--out {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge--sale {
  background: var(--accent);
  color: #fff;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 6px 6px;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-card__brand {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.condition {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

.condition--ok {
  color: var(--ok);
}

.condition--info {
  color: var(--accent-strong);
}

.product-card__title {
  margin-top: 7px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.product-card__title a:hover {
  color: var(--accent);
}

.product-card__specs {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.product-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
}

.price {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.price--xl {
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.045em;
}

.price-old {
  color: var(--muted-2);
  font-size: 12.5px;
  text-decoration: line-through;
}

.icon-btn--add {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.icon-btn--add:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.icon-btn--add:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-card--skeleton {
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, #eeeef1 25%, #f6f6f8 37%, #eeeef1 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeleton--line {
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
}

.skeleton--lg {
  height: 16px;
}

/* ------------------------------- categorías ------------------------------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-tile {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.28s var(--ease), box-shadow 0.28s, border-color 0.28s;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.category-tile--wide {
  grid-column: span 2;
  background:
    radial-gradient(600px 260px at 88% 10%, rgba(11, 99, 246, 0.12), transparent 60%),
    var(--surface);
}

.category-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-tile__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink);
}

.category-tile__count {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.category-tile__body {
  margin-top: auto;
  padding-top: 22px;
}

.category-tile__body h3 {
  font-size: 21px;
}

.category-tile__body p {
  margin-top: 6px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 13px;
}

.category-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.category-tile:hover .category-tile__link {
  color: var(--accent);
}

/* -------------------------------- valores --------------------------------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.value-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.value-card h3 {
  margin-top: 18px;
  font-size: 18px;
}

.value-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* -------------------------------- cta band -------------------------------- */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 24px 0 80px;
  padding: 44px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(11, 99, 246, 0.35), transparent 60%),
    var(--dark);
  color: #fff;
}

.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.cta-band h2 {
  max-width: 16ch;
  font-size: clamp(28px, 3.4vw, 44px);
}

.cta-band p {
  margin-top: 10px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

/* -------------------------------- catálogo -------------------------------- */

.catalog-page {
  padding: 28px 0 80px;
}

.catalog-head {
  margin: 18px 0 22px;
}

.catalog-head h1 {
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.05em;
}

.catalog-head .lede {
  margin-top: 12px;
  font-size: 16px;
}

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 26px;
  scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.chip-link {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.chip-link:hover,
.chip-link.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.catalog-aside {
  position: sticky;
  top: 84px;
}

.filters {
  display: grid;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filters__head h2 {
  font-size: 16px;
}

.filter-group {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.filter-group h3 {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter-links {
  display: grid;
  gap: 2px;
}

.filter-links a {
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 13px;
}

.filter-links a:hover {
  background: var(--paper-2);
}

.filter-links a.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.filter-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-range input {
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  font-size: 12.5px;
}

.filter-range span {
  color: var(--muted);
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: none;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.search-inline {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(360px, 100%);
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.search-inline:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.08);
}

.search-inline input {
  width: 100%;
  padding: 11px 0;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--ink);
  font-size: 13.5px;
}

.catalog-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select {
  position: relative;
}

.select select,
.admin-toolbar select {
  appearance: none;
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
}

.filters-toggle {
  display: none;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12.5px;
}

.catalog-meta__note {
  color: var(--accent-strong);
}

.catalog-empty {
  padding: 40px 0;
}

.catalog-more {
  display: flex;
  justify-content: center;
  padding: 30px 0 10px;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  padding: 44px 20px;
  text-align: center;
}

.empty-state h3 {
  font-size: 21px;
}

.empty-state p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 14px;
}

.empty-state .btn {
  margin-top: 8px;
}

/* ------------------------------- ficha producto --------------------------- */

.product-page {
  padding: 24px 0 80px;
}

.crumbs {
  margin: 8px 0 22px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumbs li + li::before {
  content: '/';
  color: var(--line-strong);
}

.crumbs a:hover {
  color: var(--ink);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
  gap: 44px;
  align-items: start;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.gallery__main {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  min-width: 0;
  padding: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 40%, #ffffff 0%, #f5f6f9 62%, #edeef3 100%);
}

.gallery__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 24px 30px rgba(18, 18, 21, 0.12));
}

.gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.gallery__thumb {
  flex: none;
  width: 74px;
  height: 74px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  opacity: 0.75;
  transition: opacity 0.18s, border-color 0.18s;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.gallery__thumb:hover,
.gallery__thumb.is-active {
  border-color: var(--ink);
  opacity: 1;
}

.buybox {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.buybox__title {
  margin-top: 6px;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.045em;
}

.buybox__specs {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.variant-picker {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.variant-picker legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.variant-picker__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.variant-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.variant-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.variant-option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.variant-option strong {
  font-size: 14px;
  font-weight: 600;
}

.variant-option small {
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.variant-option:hover span {
  border-color: var(--line-strong);
}

.variant-option:has(input:checked) span {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.variant-option:has(input:focus-visible) span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.buybox__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 500;
}

.stock--ok {
  color: var(--ok);
}

.stock--out {
  color: var(--danger);
}

.buybox__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.buybox__actions .stepper {
  padding: 5px;
}

.buybox__actions .stepper button {
  width: 34px;
  height: 34px;
}

.assurances {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}

.assurances li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.assurances li .icon {
  margin-top: 1px;
  color: var(--ink);
}

.assurances strong {
  color: var(--ink);
  font-weight: 600;
}

.buybox__seller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.buybox__seller-label {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.buybox__seller strong {
  font-size: 14px;
}

.product__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 44px;
}

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel--quiet {
  background: var(--surface-2);
}

.panel h2 {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.spec-grid {
  display: grid;
  margin: 0;
}

.spec-grid__row {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.spec-grid__row:last-child {
  border-bottom: 0;
}

.spec-grid dt {
  color: var(--muted);
  font-size: 12.5px;
}

.spec-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: var(--warn-soft);
  color: var(--warn);
}

.notice p {
  font-size: 12.5px;
  line-height: 1.5;
}

.notice--soft {
  margin-top: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}

.chip--muted {
  background: var(--paper-2);
  color: var(--muted);
}

.chip--info {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.chip--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.chip--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.chip--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ------------------------------- carrito página --------------------------- */

.page-stack {
  padding: 26px 0 80px;
}

.page-stack--narrow {
  width: min(820px, calc(100% - 48px));
}

.page-head {
  margin-bottom: 30px;
}

.page-head h1 {
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.page-head .lede {
  margin-top: 10px;
  font-size: 16px;
}

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.cart-page__main {
  display: grid;
  gap: 18px;
}

.cart-lines--page .cart-line {
  grid-template-columns: 110px 1fr auto;
  padding: 20px 0;
}

.cart-lines--page .cart-line__media {
  width: 110px;
  height: 110px;
}

.cart-lines--page .cart-line__name {
  font-size: 16px;
}

.cart-page__empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 50px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.cart-page__empty p {
  color: var(--muted);
  font-size: 14px;
}

.cart-summary {
  position: sticky;
  top: 86px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.summary-row--total {
  border-bottom: 0;
  padding-top: 16px;
  color: var(--ink);
  font-size: 16px;
}

.summary-row--total strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.cart-summary .btn {
  margin-top: 16px;
}

.assurance-list {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11.5px;
}

.assurance-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* -------------------------------- checkout -------------------------------- */

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  align-items: start;
}

.checkout__main {
  display: grid;
  gap: 18px;
}

.checkout__aside {
  position: sticky;
  top: 86px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field > span {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
}

.field > span small {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field textarea {
  resize: vertical;
  min-height: 76px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.09);
}

.field input[aria-invalid='true'],
.field select[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: var(--danger);
}

.field em,
em[data-error-for] {
  min-height: 0;
  color: var(--danger);
  font-size: 11.5px;
  font-style: normal;
}

em[data-error-for]:empty {
  display: none;
}

.radio-stack {
  display: grid;
  gap: 8px;
}

.radio-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card__body {
  display: grid;
  gap: 2px;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.18s, background 0.18s;
}

.radio-card__body::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.radio-card input:checked + .radio-card__body {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.radio-card input:checked + .radio-card__body::before {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px var(--surface);
  background: var(--accent);
}

.radio-card input:focus-visible + .radio-card__body {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.radio-card__body strong {
  font-size: 13.5px;
  font-weight: 600;
}

.radio-card__body > span {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.checkout-summary h2 {
  margin-bottom: 10px;
}

.checkout-lines {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.checkout-line {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
}

.checkout-line img {
  width: 52px;
  height: 52px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: contain;
  background: var(--surface-2);
}

.checkout-line strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.checkout-line span {
  color: var(--muted);
  font-size: 11px;
}

.checkout-line > strong {
  font-size: 12.5px;
}

.check--terms {
  align-items: flex-start;
  margin: 14px 0 4px;
  color: var(--muted);
  font-size: 11.5px;
}

.check--terms a {
  color: var(--ink);
  text-decoration: underline;
}

.checkout-alert {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.turnstile-slot {
  margin-top: 14px;
}

/* --------------------------------- pedido --------------------------------- */

.success-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 10px 0 26px;
  padding: 18px 20px;
  border: 1px solid #bfe8d2;
  border-radius: var(--radius);
  background: var(--ok-soft);
}

.success-banner__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  flex: none;
}

.success-banner h2 {
  font-size: 18px;
}

.success-banner p {
  margin-top: 3px;
  color: #236146;
  font-size: 13px;
}

.order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.order-head h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  letter-spacing: -0.05em;
}

.order-head__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 30px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-reset: step;
}

.timeline__step {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  color: var(--muted);
  font-size: 12px;
}

.timeline__step + .timeline__step::before {
  content: '';
  flex: 1;
  height: 1px;
  margin-right: 10px;
  background: var(--line);
}

.timeline__dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  font-size: 10px;
  font-weight: 600;
  flex: none;
}

.timeline__step.is-done {
  color: var(--ink);
}

.timeline__step.is-done .timeline__dot {
  border-color: var(--ok);
  background: var(--ok);
  color: #fff;
}

.timeline__step.is-current .timeline__dot {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline__step.is-current {
  color: var(--ink);
  font-weight: 600;
}

.timeline--cancelled {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--danger);
  font-weight: 500;
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.order-main {
  display: grid;
  gap: 18px;
}

.order-side {
  display: grid;
  gap: 18px;
}

.order-items {
  display: grid;
}

.order-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.order-item img {
  width: 72px;
  height: 72px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: contain;
  background: var(--surface-2);
}

.order-item__body {
  display: grid;
  gap: 2px;
}

.order-item__body a {
  font-size: 13.5px;
  font-weight: 600;
}

.order-item__body span {
  color: var(--muted);
  font-size: 12px;
}

.order-item > strong {
  font-size: 14px;
}

.totals {
  display: grid;
  gap: 6px;
  padding-top: 14px;
}

.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.totals__grand {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: 15px !important;
}

.totals__grand strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
  padding-left: 20px;
  list-style: decimal;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.steps strong {
  color: var(--ink);
}

.summary-list {
  display: grid;
  margin: 0;
}

.summary-list > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.summary-list > div:last-child {
  border-bottom: 0;
}

.summary-list dt {
  color: var(--muted);
  font-size: 11.5px;
}

.summary-list dd {
  margin: 0;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.pay-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pay-banner__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper-2);
  flex: none;
}

.pay-banner strong {
  display: block;
  font-size: 13.5px;
}

.pay-banner p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

.pay-banner--ok {
  border-color: #bfe8d2;
  background: var(--ok-soft);
}

.pay-banner--ok .pay-banner__icon {
  background: var(--ok);
  color: #fff;
}

.pay-banner--info {
  border-color: #c9dcff;
  background: var(--accent-soft);
}

.pay-banner--warn {
  border-color: #f0d7a8;
  background: var(--warn-soft);
}

.pay-banner--danger {
  border-color: #f2c4c0;
  background: var(--danger-soft);
}

.order-side .panel .btn {
  margin-top: 14px;
}

/* --------------------------------- lookup --------------------------------- */

.lookup-panel {
  display: grid;
  gap: 12px;
}

.lookup-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.lookup-form .field {
  flex: 1;
}

/* --------------------------------- contacto ------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-card--primary {
  background: var(--ink);
  color: #fff;
}

.contact-card--primary .contact-card__icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.contact-card--primary p,
.contact-card--primary .link-arrow {
  color: rgba(255, 255, 255, 0.7);
}

.contact-card--primary .link-arrow {
  color: #fff;
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--paper-2);
}

.contact-card h2 {
  font-size: 20px;
}

.contact-card p {
  color: var(--muted);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.contact-card .link-arrow {
  margin-top: 10px;
}

.faq {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.faq details {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: '+';
  display: inline-block;
  width: 20px;
  color: var(--muted);
}

.faq details[open] summary::before {
  content: '−';
}

.faq p {
  margin: 8px 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------------------------------- legal --------------------------------- */

.prose--doc {
  max-width: none;
}

.prose--doc section + section {
  margin-top: 26px;
}

.prose--doc h2 {
  font-size: 19px;
}

.prose--doc .fineprint {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.error-page {
  padding: 40px 0 60px;
}

.error-page h1 {
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -0.05em;
}

.error-page .lede {
  margin-top: 12px;
}

/* ---------------------------------- footer -------------------------------- */

.site-footer {
  margin-top: 40px;
  padding: 54px 0 26px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 0.8fr));
  gap: 36px;
}

.footer__brand p {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.6;
}

.footer__place {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__col {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer__col h3 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__col a {
  font-size: 13px;
  transition: color 0.18s;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 11.5px;
}

.footer__pay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------------------------------- toast --------------------------------- */

.toast-region {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 150;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100% - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s var(--ease);
  pointer-events: auto;
}

.toast--error {
  background: var(--danger);
}

.toast--ok {
  background: var(--ok);
}

/* -------------------------------- admin ---------------------------------- */

.admin-body {
  background: #f2f2f5;
}

.admin-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
  background:
    radial-gradient(700px 500px at 20% 20%, rgba(11, 99, 246, 0.25), transparent 60%),
    var(--dark);
}

.admin-login__brand {
  display: flex;
  align-items: flex-start;
  padding: 34px;
}

.admin-login__card {
  align-self: center;
  width: min(420px, calc(100% - 48px));
  margin: 40px auto;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.admin-login__card h1 {
  font-size: 32px;
}

.admin-login__card > .muted {
  margin-top: 6px;
  font-size: 13px;
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.admin-login__card > .link-quiet {
  margin-top: 16px;
}

.admin-login__card .fineprint {
  margin-top: 18px;
}

.form-error {
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}

.admin-app {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100dvh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100dvh;
  padding: 26px 18px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
}

.admin-nav {
  display: grid;
  gap: 3px;
}

.admin-nav button,
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  text-align: left;
}

.admin-nav button:hover,
.admin-nav a:hover,
.admin-nav button.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-nav .icon {
  opacity: 0.8;
}

.admin-sidebar__foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11.5px;
}

.admin-sidebar__foot .link-quiet {
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-workspace {
  min-width: 0;
  padding: 26px 30px 60px;
}

.admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.admin-topbar h1 {
  font-size: 32px;
}

.admin-content {
  display: grid;
  gap: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-card > span {
  color: var(--muted);
  font-size: 11.5px;
}

.stat-card strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.stat-card small {
  color: var(--muted);
  font-size: 10.5px;
}

.stat-actions {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-toolbar .search-inline {
  flex: 1;
  min-width: 220px;
}

.table-wrap {
  overflow-x: auto;
  padding: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  white-space: nowrap;
}

.table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tr:hover td {
  background: var(--surface-2);
}

.table .product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  white-space: normal;
}

.table .product-cell img {
  width: 40px;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: var(--surface-2);
}

.table .product-cell strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.table .product-cell span {
  color: var(--muted);
  font-size: 10.5px;
}

.table-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.table-actions .icon-btn {
  width: 32px;
  height: 32px;
}

.table .is-off {
  color: var(--muted);
}

.status-select {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font-size: 11.5px;
}

/* --------------------------------- modales -------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 21, 0.45);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: min(88dvh, 900px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.24s var(--ease);
}

.modal__panel--wide {
  width: min(880px, 100%);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.modal__head h2 {
  font-size: 22px;
}

.modal__body {
  overflow-y: auto;
  padding: 22px;
  overscroll-behavior: contain;
}

.modal__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.modal__actions .spacer {
  flex: 1;
}

.form-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.form-section:first-child {
  padding-top: 0;
}

.form-section:last-of-type {
  border-bottom: 0;
}

.form-section h3 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.image-item {
  position: relative;
  width: 92px;
  height: 92px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-item button {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--danger);
  box-shadow: var(--shadow-sm);
}

.image-list:empty + input {
  margin-top: 0;
}

.order-detail-grid {
  display: grid;
  gap: 16px;
}

.order-detail-grid h3 {
  margin-bottom: 8px;
  font-size: 13px;
}

.order-detail-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.order-detail-line span:first-child {
  color: var(--muted);
}

.order-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.is-disabled {
  opacity: 0.45;
}

/* ------------------------------- animaciones ------------------------------ */

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* -------------------------------- responsive ------------------------------ */

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__grid {
    gap: 30px;
  }

  .product {
    grid-template-columns: 1fr 420px;
    gap: 28px;
  }

  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 24px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 48px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__copy h1 {
    max-width: 15ch;
  }

  .hero__visual {
    width: min(560px, 100%);
    margin-inline: auto;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-aside {
    position: static;
  }

  .filters {
    display: none;
  }

  .catalog-aside.is-open .filters {
    display: grid;
    margin-bottom: 18px;
  }

  .filters-toggle {
    display: inline-flex;
  }

  .product {
    grid-template-columns: 1fr;
  }

  .buybox {
    position: static;
  }

  .product__details {
    grid-template-columns: 1fr;
  }

  .cart-page,
  .checkout,
  .order-grid {
    grid-template-columns: 1fr;
  }

  .cart-summary,
  .checkout__aside {
    position: static;
  }

  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    height: auto;
    padding: 14px 18px;
    overflow-x: auto;
  }

  .admin-nav {
    display: flex;
    flex: 1;
  }

  .admin-nav a {
    display: none;
  }

  .admin-sidebar__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
  }

  .admin-sidebar__foot > span {
    display: none;
  }

  .admin-login {
    grid-template-columns: 1fr;
  }

  .admin-login__brand {
    padding: 24px;
  }

  .admin-login__card {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 32px);
  }

  .page-stack--narrow {
    width: calc(100% - 32px);
  }

  .product-grid,
  .product-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid,
  .value-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .category-tile--wide {
    grid-column: auto;
  }

  .section {
    padding: 54px 0;
  }

  .section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .cta-band {
    padding: 28px;
    margin-bottom: 54px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .catalog-toolbar {
    flex-wrap: wrap;
  }

  .catalog-toolbar .search-inline {
    width: 100%;
  }

  .catalog-toolbar__right {
    width: 100%;
    justify-content: space-between;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .order-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline {
    display: grid;
    gap: 10px;
  }

  .timeline__step + .timeline__step::before {
    display: none;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-workspace {
    padding: 18px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .product-grid,
  .product-grid--catalog {
    grid-template-columns: 1fr;
  }

  .header__inner {
    height: 58px;
  }

  .brand {
    font-size: 17px;
  }

  .hero__copy h1 {
    font-size: 40px;
  }

  .hero__proof {
    gap: 18px;
  }

  .hero__tag {
    display: none;
  }

  .hero__frame {
    padding: 20px;
    border-radius: 24px;
  }

  .trust-bar__inner {
    justify-content: flex-start;
  }

  .cart-line {
    grid-template-columns: 64px 1fr auto;
  }

  .cart-line__media {
    width: 64px;
    height: 64px;
  }

  .cart-lines--page .cart-line {
    grid-template-columns: 74px 1fr;
  }

  .cart-lines--page .cart-line__media {
    width: 74px;
    height: 74px;
  }

  .cart-lines--page .cart-line__side {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }

  .modal {
    padding: 0;
  }

  .modal__panel {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .admin-login__card {
    width: calc(100% - 24px);
    padding: 24px;
  }

  .admin-nav button span {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-detail-actions {
    grid-template-columns: 1fr;
  }
}
