/* ==========================================================================
   global.css — OBI
   All hex values live ONLY in :root. Everything else references variables.
   ========================================================================== */

/* design tokens */
:root {
  /* Primary scale */
  --primary-900: #00325E;
  --primary-700: #015CAC;
  --primary-500: #337CBC;
  --primary-300: #85B0D7;
  --primary-100: #D1E1F0;
  --primary-50:  #E8F0F7;

  /* Accent scale */
  --accent-900: #604A0F;
  --accent-700: #D6A523;
  --accent-500: #FFC52A;
  --accent-200: #FFD565;
  --accent-100: #FFECBA;
  --accent-50:  #FFF5DC;

  /* Ink (neutral) */
  --ink-900: #0e0f0f;
  --ink-700: #33373b;
  --ink-500: #5c636b;
  --ink-400: #858d96;
  --ink-300: #b7bdc4;
  --ink-200: #d8dde2;
  --ink-100: #e7ebef;

  /* Surfaces */
  --surface-0:   #f4f6f8;
  --surface-1:   #ffffff;
  --surface-2:   #fbfcfd;

  /* Functional */
  --success:    #117a3d;
  --success-bg: #d5ecdd;
  --warning:    #B07A00;
  --warning-bg: #FFECBA;
  --error:      #B5321C;
  --error-bg:   #f7d9d1;

  /* Typography */
  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale */
  --text-display: 4.5rem;
  --text-h1:      3rem;
  --text-h2:      2.25rem;
  --text-h3:      1.5rem;
  --text-h4:      1.25rem;
  --text-body-lg: 1.125rem;
  --text-body:    1rem;
  --text-body-sm: 0.875rem;
  --text-label:   0.75rem;
  --text-caption: 0.6875rem;

  /* Spacing — 8 px base */
  --space-0:  0;
  --space-1:  0.25rem;   /* 4 px */
  --space-2:  0.5rem;    /* 8 px */
  --space-3:  0.75rem;   /* 12 px */
  --space-4:  1rem;      /* 16 px */
  --space-5:  1.5rem;    /* 24 px */
  --space-6:  2rem;      /* 32 px */
  --space-7:  3rem;      /* 48 px */
  --space-8:  4rem;      /* 64 px */
  --space-9:  6rem;      /* 96 px */
  --space-10: 8rem;      /* 128 px */

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Shadows */
  --shadow-1: 0 1px 0 rgba(14,15,15,0.04), 0 1px 2px rgba(14,15,15,0.06);
  --shadow-2: 0 2px 4px rgba(14,15,15,0.06), 0 8px 24px rgba(14,15,15,0.06);

  /* Layout */
  --container-max: 1240px;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
ul, ol  { margin: 0; padding: 0; list-style: none; }
a       { color: inherit; text-decoration: none; }
button  { cursor: pointer; border: 0; background: none; padding: 0; font: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }
table { border-collapse: collapse; }

/* base */
body {
  font-family: var(--font-sans);
  background: var(--surface-0);
  color: var(--ink-900);
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 1, "cv11" 1;
}

/* layout */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px)  { .container { padding-inline: var(--space-6); } }
@media (min-width: 1200px) { .container { padding-inline: var(--space-8); } }

/* buttons */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-body);
  letter-spacing: 0.01em;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 0;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s, color 0.15s;
}
.btn:focus-visible {
  outline: 3px solid rgba(10, 93, 168, 0.35);
  outline-offset: 2px;
}
.btn--primary {
  background: var(--accent-500);
  color: var(--ink-900);
  box-shadow: 0 0 0 1px rgba(14,15,15,0.06), 0 1px 0 rgba(14,15,15,0.08);
}
.btn--primary:hover  { background: var(--accent-200); transform: translateY(-1px); }
.btn--secondary {
  background: transparent;
  color: var(--primary-700);
  box-shadow: inset 0 0 0 1.5px var(--primary-700);
}
.btn--secondary:hover { background: var(--primary-50); }
.btn--ghost {
  background: transparent;
  color: var(--primary-700);
}
.btn--ghost:hover { background: var(--primary-50); }
.btn--sm  { font-size: var(--text-body-sm); padding: 8px 14px; }
.btn--lg  { font-size: 1.0625rem; padding: 16px 28px; }
.btn--dark {
  background: var(--ink-900);
  color: var(--surface-1);
}
.btn--dark:hover { background: var(--ink-700); transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--ink-100);
  color: var(--ink-700);
  border-radius: var(--radius-sm);
}
.badge--primary { background: var(--primary-100); color: var(--primary-900); }
.badge--accent  { background: var(--accent-100);  color: var(--accent-900); }
.badge--dark    { background: var(--ink-900);      color: var(--surface-1); }
.badge--success { background: var(--success-bg);   color: var(--success); }
.badge--warning { background: var(--warning-bg);   color: var(--warning); }
.badge--error   { background: var(--error-bg);     color: var(--error); }

/* per-group selected-count badge (Categoría / Marca filter headers) */
.filter-group__count {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--primary-700);
  background: var(--primary-50);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  text-transform: none;
  flex-shrink: 0;
}

/* Floating WhatsApp button (brand color #25D366 — not a design token) */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
@media (max-width: 767px) {
  .wa-float { bottom: 16px; left: 16px; width: 48px; height: 48px; }
  .wa-float svg { width: 28px; height: 28px; }
}
/* hide WhatsApp button while the mobile filter drawer is open (prevents overlap) */
body:has(.filter-drawer--open) .wa-float { display: none; }

/* navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface-1);
  border-bottom: 1px solid var(--ink-200);
  box-shadow: var(--shadow-1);
}
.site-nav__top {
  background: var(--primary-700);
  color: var(--surface-1);
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
}
.site-nav__top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.site-nav__top-contact { white-space: nowrap; }
@media (max-width: 767px) { .site-nav__top-msg { display: none; } }
.site-nav__main > .container {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: 14px;
  position: relative;
}
.site-nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-nav__logo img {
  display: block;
  height: 48px;
  width: auto;
}
.site-nav__hamburger {
  margin-left: auto;
  padding: var(--space-2);
  color: var(--ink-900);
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
}
.site-nav__hamburger:hover { background: var(--ink-100); }
.site-nav__hamburger svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.site-nav__collapse {
  display: none;
}
/* open state — toggled by JS adding .site-nav--open */
.site-nav--open .site-nav__collapse {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-1);
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  padding: var(--space-5);
  gap: var(--space-5);
  box-shadow: var(--shadow-2);
  z-index: 100;
}
.site-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.site-nav__links li { border-bottom: 1px solid var(--ink-100); }
.site-nav__links a {
  display: block;
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--ink-700);
  padding: var(--space-3) 0;
  transition: color 0.15s;
}
.site-nav__links a:hover { color: var(--primary-700); }
.site-nav__links a[aria-current="page"] {
  color: var(--primary-700);
  font-weight: 600;
}
.site-nav__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.site-nav__ctas .btn { justify-content: center; }
/* desktop layout */
@media (min-width: 768px) {
  .site-nav__hamburger { display: none; }
  .site-nav__collapse {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    position: static;
    border: 0;
    padding: 0;
    gap: 0;
    box-shadow: none;
    flex: 1;
  }
  .site-nav__links {
    flex: 1;
    flex-direction: row;
    justify-content: center;
    gap: var(--space-6);
  }
  .site-nav__links li { border-bottom: 0; }
  .site-nav__links a {
    font-size: var(--text-body-sm);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }
  .site-nav__links a:hover { border-bottom-color: var(--ink-200); }
  .site-nav__links a[aria-current="page"] {
    color: var(--primary-700);
    border-bottom-color: var(--accent-500);
    font-weight: 500;
  }
  .site-nav__ctas {
    flex-direction: row;
    align-items: center;
    margin-left: auto;
  }
}

/* site-wide header search */
.site-nav__search {
  background: var(--surface-0);
  border-top: 1px solid var(--ink-100);
  padding: 8px 0;
}
.site-search {
  display: flex;
  align-items: center;
  position: relative;
  gap: var(--space-2);
}
.site-search__icon {
  position: absolute;
  left: var(--space-3);
  width: 15px;
  height: 15px;
  stroke: var(--ink-400);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  flex-shrink: 0;
}
.site-search__input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: var(--text-body-sm);
  color: var(--ink-900);
  background: var(--surface-1);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  padding: 7px 12px 7px 34px;
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}
.site-search__input:focus { border-color: var(--primary-700); }
.site-search__input::placeholder { color: var(--ink-400); }
.site-search__btn {
  font-family: var(--font-sans);
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--surface-1);
  background: var(--primary-700);
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
  line-height: 1.5;
}
.site-search__btn:hover { background: var(--primary-900); }

/* breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  color: var(--ink-500);
}
.breadcrumb a { color: var(--ink-500); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--primary-700); }
.breadcrumb__sep {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
  flex-shrink: 0;
}
.breadcrumb__current { color: var(--ink-700); font-weight: 500; }

/* product card */
.product-card {
  background: var(--surface-1);
  border: 1px solid var(--ink-200);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.product-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.product-card__image {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--surface-1);
  overflow: hidden;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-2);
}
.product-card__badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
}
.product-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}
.product-card__sku {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--ink-500);
  letter-spacing: 0.06em;
}
.product-card__name {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.3;
}
.product-card__foot {
  padding: 0 var(--space-4) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* sector card */
.sector-card {
  aspect-ratio: 4 / 5;
  position: relative;
  background: var(--primary-900);
  color: var(--surface-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-5);
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  transition: transform 0.15s;
}
.sector-card:hover { transform: translateY(-2px); }
.sector-card__num {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.1em;
  color: var(--accent-500);
}
.sector-card__title {
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.sector-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: rgba(255,255,255,0.7);
}
.sector-card__arrow {
  width: 32px;
  height: 32px;
  background: var(--accent-500);
  display: grid;
  place-items: center;
  color: var(--primary-900);
  flex-shrink: 0;
}
.sector-card__arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

/* footer */
.site-footer {
  background: var(--primary-900);
  color: var(--surface-1);
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.site-footer__body { padding: var(--space-7) 0; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-7) var(--space-6);
  }
}
@media (min-width: 1200px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.site-footer__col-head {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-500);
  margin-bottom: var(--space-4);
  display: block;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.site-footer__desc {
  font-size: var(--text-body-sm);
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: var(--space-5);
}
.site-footer__links a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: var(--text-body-sm);
  padding: 5px 0;
  transition: color 0.15s;
}
.site-footer__links a:hover { color: var(--surface-1); }
.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-body-sm);
  color: rgba(255,255,255,0.8);
  padding: 5px 0;
}
.site-footer__contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-500);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}
.site-footer__bottom {
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.site-footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
}

/* section */
.section {
  padding: var(--space-7) 0;
}
@media (min-width: 1200px) { .section { padding: var(--space-9) 0; } }

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-700);
  display: block;
  margin-bottom: var(--space-3);
}
.section__title {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-3);
}
.section__lede {
  font-size: var(--text-body-lg);
  color: var(--ink-700);
  max-width: 60ch;
  line-height: 1.55;
}
.section__head {
  margin-bottom: var(--space-7);
}
.section__head--centered {
  text-align: center;
}
.section__head--centered .section__lede {
  margin-inline: auto;
}

/* icon */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}
.icon--16 { width: 16px; height: 16px; }
.icon--24 { width: 24px; height: 24px; }
.icon--32 { width: 32px; height: 32px; }

/* page hero */
.page-hero {
  background: var(--primary-900);
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--surface-1);
  padding: var(--space-9) 0;
}
.page-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: var(--space-4);
}
.page-hero__title {
  font-size: clamp(var(--text-h2), 5vw, var(--text-h1));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: var(--space-4);
}
.page-hero__title .accent { color: var(--accent-500); }
.page-hero__sub {
  font-size: var(--text-body-lg);
  color: rgba(255,255,255,0.8);
  max-width: 58ch;
  line-height: 1.55;
}

/* page header */
.page-header {
  background: var(--surface-1);
  border-bottom: 1px solid var(--ink-200);
  padding: var(--space-5) 0;
}

/* cta band */
.cta-band {
  padding: var(--space-7) 0;
  text-align: center;
}
.cta-band__title {
  font-size: clamp(var(--text-h3), 4vw, var(--text-h1));
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}
.cta-band__sub {
  font-size: var(--text-body-lg);
  margin-bottom: var(--space-6);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── prose (legal pages) ── */
.prose {
  max-width: 72ch;
  color: var(--ink-700);
  line-height: 1.75;
}
.prose h1 {
  color: var(--ink-900);
  margin-bottom: var(--space-7);
}
.prose h2 {
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink-900);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
}
.prose p {
  margin-bottom: var(--space-4);
}
.prose p:last-child { margin-bottom: 0; }
.prose ol {
  padding-left: var(--space-5);
  list-style: decimal;
  margin-bottom: var(--space-4);
}
.prose ul {
  padding-left: var(--space-5);
  list-style: disc;
  margin-bottom: var(--space-4);
}
.prose li {
  margin-bottom: var(--space-3);
  line-height: 1.6;
}
.prose-note {
  background: var(--accent-50);
  border-left: 3px solid var(--accent-500);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: var(--space-6);
}
.prose-note strong {
  display: block;
  font-size: var(--text-body-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
  color: var(--accent-900);
}
.prose-bank {
  background: var(--surface-0);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin: var(--space-4) 0;
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  line-height: 1.8;
}
.prose-date {
  color: var(--ink-400);
  font-size: var(--text-body-sm);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--ink-100);
}

/* ── Catalog ──────────────────────────────────────────────── */
.page-header__title {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: var(--space-3);
}
.page-header__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.page-header__row .page-header__title { margin-top: 0; }
.catalog {
  padding: var(--space-6) 0 var(--space-9);
}
.catalog__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 1200px) {
  .catalog__inner {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
}
.catalog__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.catalog__count {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--ink-500);
  letter-spacing: 0.06em;
}


.filter-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--primary-700);
  padding: 8px 14px;
  border: 1.5px solid var(--primary-700);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background 0.15s;
}
.filter-toggle:hover { background: var(--primary-50); }
.filter-toggle svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 1.5;
  fill: none; stroke-linecap: round;
}
@media (min-width: 1200px) { .filter-toggle { display: none; } }

/* filter sidebar header + clear button */
.filter-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--ink-200);
}
.filter-sidebar__label {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}
.filter-clear {
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--primary-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.12s;
}
.filter-clear:hover { color: var(--primary-900); }

/* sidebar */
.filter-sidebar {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
}
@media (min-width: 1200px) {
  .filter-sidebar {
    display: flex !important;
    position: sticky;
    top: calc(145px + var(--space-5));
  }
}
.filter-sidebar--open { display: flex; }

/* mobile drawer */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14,15,15,0.4);
  z-index: 150;
}
.filter-overlay--open { display: block; }
.filter-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(320px, 90vw);
  background: var(--surface-1);
  z-index: 160;
  overflow-y: auto;
  padding: var(--space-5);
  box-shadow: var(--shadow-2);
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}
.filter-drawer--open { transform: translateX(0); }
@media (min-width: 1200px) {
  .filter-overlay, .filter-drawer { display: none !important; }
}
.filter-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--ink-200);
}
.filter-drawer__head .filter-clear { margin-right: auto; }
.filter-drawer__title { font-size: var(--text-h4); font-weight: 700; }
.filter-drawer__close {
  padding: var(--space-2);
  color: var(--ink-500);
  border-radius: var(--radius-sm);
}
.filter-drawer__close:hover { background: var(--ink-100); }
.filter-drawer__close svg {
  width: 20px; height: 20px;
  stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; fill: none;
}

/* filter group */
.filter-group {
  background: var(--surface-1);
  border: 1px solid var(--ink-200);
}
.filter-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--ink-100);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-700);
  font-weight: 500;
}
.filter-group__body {
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-height: 280px;
  overflow-y: auto;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  margin: 0 calc(-1 * var(--space-2));
  transition: background 0.12s;
}
.filter-check:hover { background: var(--surface-0); }
.filter-check:has(input:checked) { background: var(--primary-50); }

/* custom circle indicator — hides native control, draws our own */
.filter-check input[type="checkbox"],
.filter-check input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink-300);
  border-radius: 50%;
  background: var(--surface-1);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.12s, background 0.12s;
}
.filter-check input[type="checkbox"]:hover,
.filter-check input[type="radio"]:hover {
  border-color: var(--primary-300);
}
.filter-check input[type="checkbox"]:checked,
.filter-check input[type="radio"]:checked {
  background: var(--primary-700);
  border-color: var(--primary-700);
}
/* white inner dot — universal filled-circle selected state */
.filter-check input[type="checkbox"]:checked::after,
.filter-check input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--surface-1);
  border-radius: 50%;
}

.filter-check__label {
  font-size: var(--text-body-sm);
  color: var(--ink-700);
  flex: 1;
  transition: color 0.12s;
}
.filter-check:has(input:checked) .filter-check__label {
  color: var(--primary-700);
  font-weight: 600;
}
.filter-check__count {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--ink-400);
  transition: color 0.12s;
}
.filter-check:has(input:checked) .filter-check__count {
  color: var(--primary-500);
}

/* product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

/* product card link layer */
.product-card__link {
  display: contents;
  color: inherit;
}
.product-card__link .product-card__image,
.product-card__link .product-card__body { text-decoration: none; }
.product-card__brand {
  font-size: var(--text-caption);
  color: var(--ink-400);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* loading + empty states */
.catalog-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-9) 0;
  color: var(--ink-500);
}
.catalog-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--ink-200);
  border-top-color: var(--primary-700);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.catalog-empty {
  display: none;
  padding: var(--space-9) 0;
  text-align: center;
  color: var(--ink-500);
}
.catalog-empty__title {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--space-3);
}

/* pagination */
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-7);
}
.catalog-pagination:empty { display: none; }
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--ink-700);
  background: var(--surface-1);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--primary-300);
  color: var(--primary-700);
  background: var(--primary-50);
}
.page-btn--active {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: var(--surface-1);
  cursor: default;
}
.page-btn--active:hover { background: var(--primary-700); color: var(--surface-1); }
.page-btn--nav svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  color: var(--ink-400);
  user-select: none;
}
@media (max-width: 480px) {
  .page-btn { min-width: 32px; height: 32px; font-size: var(--text-caption); }
  .page-ellipsis { min-width: 24px; }
}

/* float cart */
.float-cart {
  display: none;
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-5);
  z-index: 100;
  align-items: center;
  gap: var(--space-2);
  background: var(--primary-700);
  color: var(--surface-1);
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  font-size: var(--text-body-sm);
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.float-cart:hover { background: var(--primary-900); transform: translateY(-2px); }
.float-cart svg {
  width: 20px; height: 20px;
  stroke: currentColor; stroke-width: 1.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.float-cart__badge {
  background: var(--accent-500);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.4;
}

/* ── Product detail ───────────────────────────────────────── */
.product-detail { padding: var(--space-7) 0; }
.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}
@media (min-width: 768px) {
  .product-detail__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-8);
  }
}
.product-gallery { display: flex; flex-direction: column; gap: var(--space-3); }
.product-gallery__main {
  aspect-ratio: 4 / 3;
  background: var(--surface-1);
  border: 1px solid var(--ink-200);
  position: relative;
}
.product-gallery__main img {
  position: absolute;
  inset: var(--space-5);
  width: calc(100% - 2 * var(--space-5));
  height: calc(100% - 2 * var(--space-5));
  object-fit: contain;
}

.product-info { display: flex; flex-direction: column; gap: var(--space-5); }
.product-info__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.product-info__sku {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--ink-500);
  letter-spacing: 0.06em;
}
.product-info__title {
  font-size: clamp(var(--text-h3), 3.5vw, var(--text-h1));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.product-info__desc {
  font-size: var(--text-body);
  color: var(--ink-700);
  line-height: 1.65;
}

.specs-table {
  width: 100%;
  border: 1px solid var(--ink-200);
  border-collapse: collapse;
  font-size: var(--text-body-sm);
}
.specs-table caption {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--ink-900);
  color: var(--surface-1);
}
.specs-table tr { border-bottom: 1px solid var(--ink-100); }
.specs-table tr:last-child { border-bottom: 0; }
.specs-table th {
  font-weight: 500;
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.05em;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  width: 40%;
  background: var(--surface-2);
}
.specs-table td { font-weight: 500; color: var(--ink-900); padding: var(--space-3) var(--space-4); }

.product-cta {
  padding: var(--space-5);
  background: var(--surface-2);
  border: 1px solid var(--ink-200);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.product-cta__note {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--ink-500);
  letter-spacing: 0.06em;
}

.related { padding: var(--space-7) 0 var(--space-9); border-top: 1px solid var(--ink-200); }
.related__head {
  margin-bottom: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.related__title { font-size: var(--text-h3); font-weight: 700; letter-spacing: -0.01em; }
.related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 768px) { .related__grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Cotización ───────────────────────────────────────────── */
.cot-layout { padding: var(--space-7) 0 var(--space-9); }

.cot-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (min-width: 900px) {
  .cot-inner { grid-template-columns: 1fr 340px; }
}

.cot-count {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--ink-500);
  letter-spacing: 0.06em;
  margin-top: var(--space-2);
  min-height: 1em;
}

/* Empty state */
.cot-empty {
  background: var(--surface-1);
  border: 1px solid var(--ink-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-9) var(--space-6);
  text-align: center;
  color: var(--ink-500);
}
.cot-empty svg {
  width: 48px; height: 48px;
  stroke: var(--ink-300); stroke-width: 1;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.cot-empty__title {
  font-size: var(--text-h4);
  font-weight: 700;
  color: var(--ink-900);
}
.cot-empty__action { margin-top: var(--space-2); }

/* Table */
.cot-table-wrap { overflow-x: auto; }

.cot-table {
  width: 100%;
  border: 1px solid var(--ink-200);
  border-collapse: collapse;
  font-size: var(--text-body-sm);
  background: var(--surface-1);
}
.cot-table th {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--surface-1);
  background: var(--ink-900);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}
.cot-table th:last-child { width: 44px; }
.cot-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--ink-100);
  vertical-align: middle;
}
.cot-table tr:last-child td { border-bottom: 0; }
.cot-table tbody tr:nth-child(even) { background: var(--surface-2); }
.cot-table tbody tr:hover { background: var(--primary-50); transition: background 0.1s; }

.cot-cell--sku {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--ink-500);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.cot-cell--name { font-weight: 500; color: var(--ink-900); }
.cot-cell--name a { color: inherit; transition: color 0.12s; }
.cot-cell--name a:hover { color: var(--primary-700); }
.cot-cell--qty  { width: 90px; }
.cot-cell--remove { width: 44px; text-align: center; }

.cot-qty-input {
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  width: 68px;
  padding: 5px 8px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--ink-900);
  background: var(--surface-1);
  transition: border-color 0.15s;
  outline: none;
  -moz-appearance: textfield;
}
.cot-qty-input::-webkit-outer-spin-button,
.cot-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cot-qty-input:focus { border-color: var(--primary-700); }

.cot-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  color: var(--ink-400);
  transition: background 0.12s, color 0.12s;
}
.cot-remove:hover { background: var(--error-bg); color: var(--error); }
.cot-remove svg {
  width: 15px; height: 15px;
  stroke: currentColor; stroke-width: 1.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}

/* Sticky form */
@media (min-width: 900px) {
  .cot-form { position: sticky; top: calc(145px + var(--space-5)); }
}

.cot-form__card {
  background: var(--surface-1);
  border: 1px solid var(--ink-200);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cot-form__title {
  font-size: var(--text-h4);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.cot-form__divider {
  border: 0;
  border-top: 1px solid var(--ink-100);
  margin: 0;
}

.cot-field { display: flex; flex-direction: column; gap: var(--space-1); }

.cot-field__label {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--ink-700);
}
.cot-field__label span { color: var(--error); margin-left: 2px; }

.cot-field__input {
  font-family: var(--font-sans);
  font-size: var(--text-body-sm);
  padding: 8px 12px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--ink-900);
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
}
.cot-field__input:focus { border-color: var(--primary-700); }
.cot-field__input::placeholder { color: var(--ink-400); }
.cot-field--invalid .cot-field__input { border-color: var(--error); }

.cot-field__error {
  font-size: var(--text-caption);
  color: var(--error);
  display: none;
}
.cot-field--invalid .cot-field__error { display: block; }

.cot-fecha-value {
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  color: var(--ink-500);
  padding: 4px 0;
}

.cot-download-btn {
  width: 100%;
  justify-content: center;
}

.cot-form__note {
  font-size: var(--text-caption);
  color: var(--ink-400);
  line-height: 1.55;
  text-align: center;
}

.cot-send--sent {
  background: var(--success) !important;
  color: var(--surface-1) !important;
  box-shadow: none !important;
  pointer-events: none;
}

.cot-form__success {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--success);
  background: var(--success-bg);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
}
.cot-form__success svg {
  stroke: var(--success);
  flex-shrink: 0;
}

/* ── Qty Stepper ──────────────────────────────────────────── */
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  height: 32px;
  border: 1.5px solid var(--ink-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-1);
}
.qty-stepper__btn {
  width: 32px;
  border: 0;
  background: var(--surface-0);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.1s;
  user-select: none;
}
.qty-stepper__btn:hover  { background: var(--ink-100); }
.qty-stepper__btn:active { background: var(--ink-200); }
.qty-stepper__input {
  width: 52px;
  border: 0;
  border-left:  1.5px solid var(--ink-200);
  border-right: 1.5px solid var(--ink-200);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--ink-900);
  background: var(--surface-1);
  -moz-appearance: textfield;
}
.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-stepper__input:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: -2px;
}
/* Large variant — product detail page */
.qty-stepper--lg {
  height: 48px;
}
.qty-stepper--lg .qty-stepper__btn  { width: 48px; font-size: 1.35rem; }
.qty-stepper--lg .qty-stepper__input { width: 68px; font-size: var(--text-body); }
