/* =========================================================
   Áurea Termobiológicos — Home
   Tokens from the Aurea Design System
   ========================================================= */

:root {
  --color-primary:    #2a2e7d;
  --color-accent:     #0057a7;
  --color-cyan:       #0094d9;
  --color-text:       #4d4d4d;
  --color-text-muted: #666666;
  --color-bg:         #ffffff;
  --color-bg-subtle:  #f2f2f2;
  --color-border:     #0094d9;
  --color-border-soft:#e5e5e5;

  --color-topbar:     #2a2e7d;
  --color-banner:     #0057a7;
  --color-btn-dark:   #2a2a2a;
  --color-whatsapp:   #25d366;

  --font-body: 'Visby CF', sans-serif;

  --fw-medium: 500;
  --fw-bold:   700;

  --text-h1: clamp(2rem, 1.2rem + 2.2vw, 3.1875rem);
  --text-h2: clamp(1.5rem, 1rem + 1.4vw, 2.125rem);
  --text-h3: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);

  --lh-tight: 1.15;
  --lh-snug:  1.3;
  --lh-body:  1.55;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  --gutter-desktop: clamp(1.5rem, -2rem + 7vw, 10rem);
  --gutter-mobile: 1rem;

  --content-max: 1920px;

  --transition: 200ms ease;

  --z-nav: 100;
  --z-fab: 150;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-primary); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--gutter-desktop);
}
/* =========================================================
   Topbar
   ========================================================= */
.topbar {
  background: var(--color-topbar);
  color: #fff;
  font-size: 0.8125rem;
}
.topbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-xl);
  padding-block: 0.5rem;
  flex-wrap: wrap;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
}
.topbar__item:hover { color: #fff; opacity: 0.85; }
.topbar__icon {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.topbar__icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; overflow: visible; }
.topbar__label { line-height: 1.15; white-space: nowrap; }
.topbar__label small {
  display: block; font-weight: var(--fw-medium); font-size: 0.6875rem;
  opacity: 0.9; letter-spacing: 0.01em;
}
.topbar__label strong { display: block; font-weight: var(--fw-bold); font-size: 0.875rem; }

/* =========================================================
   Site header & nav
   ========================================================= */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }

.site-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
  padding-block: var(--space-md);
  padding-inline: var(--gutter-desktop);
  position: relative;
}

.site-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-primary);
}

.brand__mark { height: 48px; width: auto; max-width: 220px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-size: 1.875rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: -0.01em;
  font-style: italic;
}
.brand__sub {
  font-size: 0.6875rem;
  font-weight: var(--fw-medium);
  color: var(--color-cyan);
  letter-spacing: 0.06em;
  margin-top: 4px;
  font-style: italic;
}

.site-nav__menu {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  align-items: center;
}
.site-nav__menu a {
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  padding-block: 0.25rem;
  position: relative;
}
.site-nav__menu a:hover { color: var(--color-primary); }
.site-nav__menu a[aria-current="page"],
.site-nav__menu a.is-active {
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border-soft);
  height: 40px;
  width: 280px;
  max-width: 100%;
  padding-inline: 0.75rem;
}
.search__input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: 0.8125rem;
  color: var(--color-text);
}
.search__input::placeholder { color: var(--color-text-muted); }
.search__btn {
  background: transparent; border: 0; padding: 0; margin-left: 0.5rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.search__btn svg { width: 16px; height: 16px; stroke: var(--color-text-muted); }
.search__btn.is-loading { opacity: 0.4; }

.site-nav__toggle {
  display: none;
  background: transparent; border: 0;
  color: var(--color-primary);
  padding: 0.5rem; margin-right: -0.5rem;
}
.site-nav__toggle svg { width: 28px; height: 28px; stroke: currentColor; }

/* =========================================================
   Section divider — thin indigo strip seen between sections in the PDF
   ========================================================= */
.divider {
  height: 10px;
  background: #1f2360;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-block: var(--space-lg) var(--space-xl);
}
.hero__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: stretch;
}
.hero__sidebar {
  border-left: 1px solid var(--color-border-soft);
  padding-left: var(--space-md);
  display: flex; flex-direction: column;
  align-self: stretch;
}
.hero__cat {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  line-height: 1.25;
}
.hero__cat:hover { color: var(--color-primary); }
.hero__cat + .hero__cat { border-top: 1px solid var(--color-border-soft); }

.hero__main {
  position: relative;
  background: #eef2f7;
  min-height: 460px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero__copy {
  position: relative; z-index: 2;
  padding: 4rem var(--space-xl);
  max-width: 55%;
  display: flex; flex-direction: column; justify-content: center;
  gap: 1.125rem;
}
.hero__eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  font-weight: var(--fw-medium);
  color: var(--color-text);
  text-transform: uppercase;
}
.hero__title {
  font-size: var(--text-h1);
  font-weight: var(--fw-bold);
  line-height: 1.05;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.hero__image {
  position: absolute; inset: 0; z-index: 1;
}
.hero__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.hero__cta { align-self: flex-start; margin-top: 0.5rem; }

.hero__dots {
  position: absolute;
  left: 50%; bottom: 1.5rem;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 14px;
  z-index: 3;
}
.hero__dot {
  width: 56px; height: 2px;
  background: rgba(255,255,255,0.7);
  border: 0; padding: 0;
}
.hero__dot.is-active { background: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  min-height: 36px;
  font-family: inherit;
  white-space: nowrap;
}
.btn--dark {
  background: var(--color-btn-dark);
  color: #fff;
}
.btn--dark:hover { background: #000; color: #fff; }

/* =========================================================
   Feature row
   ========================================================= */
.features { padding-block: var(--space-2xl); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
}
.feature {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-md);
  align-items: start;
}
.feature__icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.feature__icon img { width: 30px; height: 30px; object-fit: contain; }
.feature__icon--cyan    { background: var(--color-cyan); }
.feature__icon--accent  { background: var(--color-accent); }
.feature__icon--primary { background: var(--color-primary); }
.feature__title {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: var(--lh-snug);
  margin-bottom: 0.125rem;
}
.feature__body {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: var(--lh-snug);
}

/* =========================================================
   Promo banner
   ========================================================= */
.promo {
  background: var(--color-banner);
  color: #fff;
  padding-block: var(--space-2xl);
}
.promo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.promo__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.promo__photo {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.10)),
    #1c4f8d;
  position: relative;
  overflow: hidden;
}
.promo__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo__eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  margin-bottom: var(--space-md);
}
.promo__title {
  font-size: clamp(1.5rem, 0.9rem + 1.8vw, 2.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
.promo__specs {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
}
.promo__specs li { color: #fff; }
.promo__specs strong { font-weight: var(--fw-bold); }

/* =========================================================
   Brand logos
   ========================================================= */
.brands { padding-block: var(--space-xl); }
.brands__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  align-items: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.brand-logo {
  height: 48px;
  width: 100%;
  max-width: 180px;
  display: flex; align-items: center; justify-content: center;
  color: #c2c2c2;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  font-size: 1rem;
  text-transform: uppercase;
  text-align: center;
}
.brand-logo img { max-height: 48px; width: auto; object-fit: contain; display: block; }

/* =========================================================
   Productos destacados
   ========================================================= */
.featured { padding-block: var(--space-xl) var(--space-2xl); }
.featured__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}
.featured__title {
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin: 0;
}
.featured__controls { display: flex; gap: 0.5rem; }
.featured__btn {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--color-border, #d9d9d9);
  background: #fff;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s, border-color 0.15s;
}
.featured__btn:hover { background: var(--color-bg-subtle); border-color: #aaa; }
.featured__btn svg { width: 1.125rem; height: 1.125rem; }
.featured__track-wrap { overflow: hidden; }
.featured__track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.featured__track::-webkit-scrollbar { display: none; }
.featured__track .product {
  flex: 0 0 calc((100% - 3 * var(--space-lg)) / 4);
  scroll-snap-align: start;
}
.product {
  display: flex; flex-direction: column;
  gap: 0.625rem;
  background: #fff;
  text-align: left;
}
.product__image {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid #d9d9d9;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.product__image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product__placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--color-text-muted);
  padding: var(--space-md);
  text-align: center;
}
.product__placeholder svg { width: 56px; height: 56px; stroke: var(--color-cyan); opacity: 0.55; }
.product__placeholder span {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.product__name {
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 1.25;
  min-height: 2.5em;
  margin-top: var(--space-xs);
}
.product__price {
  font-size: 1rem;
  font-weight: var(--fw-medium);
  color: var(--color-text);
}
.product__cta {
  align-self: flex-start;
  font-size: 0.6875rem;
  padding: 0.5rem 0.875rem;
  min-height: 32px;
  background: var(--color-btn-dark);
  color: #fff;
  letter-spacing: 0.12em;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
}
.product__cta:hover { background: #000; color: #fff; }

/* =========================================================
   Footer — 2 columns (Contacto | Newsletter + Menú)
   ========================================================= */
.footer {
  background: var(--color-bg-subtle);
  padding-block: var(--space-2xl) var(--space-lg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
}
.footer__col-right {
  display: flex; flex-direction: column;
  gap: var(--space-xl);
}
.footer__title {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}
.footer__list {
  display: flex; flex-direction: column;
  gap: var(--space-md);
}
.footer__field { font-size: 0.875rem; }
.footer__field-label {
  font-weight: var(--fw-bold);
  color: var(--color-text);
  display: block;
  margin-bottom: 2px;
}
.footer__field-value {
  color: var(--color-text-muted);
  display: block;
}
a.footer__field-value:hover { color: var(--color-primary); }

.footer__social {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: var(--space-md);
}
.footer__social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer__social a:hover { background: var(--color-primary); color: #fff; }
.footer__social img { width: 14px; height: 14px; object-fit: contain; display: block; }

.footer__newsletter-sub {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: var(--lh-snug);
  margin-bottom: var(--space-md);
}
.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid #d9d9d9;
  max-width: 460px;
}
.newsletter input {
  border: 0; background: transparent; outline: none;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-text);
  min-height: 40px;
}
.newsletter input::placeholder { color: var(--color-text-muted); }
.newsletter button {
  background: var(--color-btn-dark);
  color: #fff;
  border: 0;
  padding-inline: 1.125rem;
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.newsletter button:hover { background: #000; }
.newsletter__msg {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  min-height: 1.2em;
}
.newsletter__msg.is-error { color: #b00020; }
.newsletter__msg.is-ok    { color: var(--color-accent); }

.footer__menu {
  margin-top: var(--space-xs);
}
.footer__menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__menu a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.footer__menu a:hover { color: var(--color-primary); }

.footer__copyright {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-soft);
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.footer__copyright a { color: var(--color-text-muted); }
.footer__copyright a:hover { color: var(--color-primary); }

/* =========================================================
   Floating WhatsApp
   ========================================================= */
.fab-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  z-index: var(--z-fab);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}
.fab-wa:hover { color: #fff; }
.fab-wa img { width: 28px; height: 28px; object-fit: contain; display: block; }

/* =========================================================
   Catalog layout — shared by catalogo/categoria/producto
   ========================================================= */
.catalog {
  padding-block: var(--space-xl) var(--space-2xl);
}
.catalog__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Reused sidebar (left rail) ------------------------------- */
.cat-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.cat-sidebar__categories {
  border-left: 1px solid var(--color-border-soft);
  padding-left: var(--space-md);
}
.cat-sidebar__categories ul {
  display: flex;
  flex-direction: column;
}
.cat-sidebar__cat {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  line-height: 1.25;
}
.cat-sidebar__cat:hover { color: var(--color-primary); }
.cat-sidebar__categories li + li .cat-sidebar__cat { border-top: 1px solid var(--color-border-soft); }
.cat-sidebar__cat.is-active { color: var(--color-cyan); font-weight: var(--fw-bold); }

/* Marcas filter -------------------------------------------- */
.filter__title {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}
.filter__list {
  display: flex; flex-direction: column;
  gap: 0.625rem;
  margin-bottom: var(--space-md);
}
.filter__row {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-text);
}
.filter__row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1px solid #c2c2c2;
  background: #fff;
  margin: 0;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.filter__row input[type="checkbox"]:checked {
  border-color: var(--color-cyan);
  background: var(--color-cyan);
}
.filter__row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.filter__row:hover input[type="checkbox"] {
  border-color: var(--color-cyan);
}
.filter__btn {
  background: var(--color-btn-dark);
  color: #fff;
  border: 0;
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  min-height: 36px;
  width: 100%;
  max-width: 200px;
}
.filter__btn:hover { background: #000; }

/* =========================================================
   Catalog — categories grid (page 1)
   ========================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.cat-card {
  background: var(--color-bg-subtle);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  min-height: 200px;
  gap: var(--space-md);
  color: var(--color-cyan);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.cat-card svg {
  width: 64px; height: 64px;
  stroke: var(--color-cyan);
  fill: none;
  stroke-width: 1.6;
  transition: stroke var(--transition);
}
.cat-card__label {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--color-cyan);
  letter-spacing: 0.01em;
  line-height: var(--lh-snug);
  transition: color var(--transition);
}
.cat-card:hover,
.cat-card.is-active {
  background: var(--color-cyan);
  color: #fff;
}
.cat-card:hover svg,
.cat-card.is-active svg { stroke: #fff; }
.cat-card:hover .cat-card__label,
.cat-card.is-active .cat-card__label { color: #fff; }
.cat-card__img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; border-radius: 0;
  display: block; flex-shrink: 0;
  margin-bottom: var(--space-sm);
}

/* =========================================================
   Category title band (cyan)
   ========================================================= */
.cat-header {
  background: var(--color-cyan);
  color: #fff;
  padding: 0.875rem var(--space-md);
  text-align: center;
  font-size: 1rem;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xl);
}
.cat-header--plain {
  background: transparent;
  color: var(--color-cyan);
  text-align: left;
  padding-left: 0;
  font-size: 1.125rem;
}

/* =========================================================
   Products listing (page 2)
   ========================================================= */
.products-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
  align-items: stretch;
}
.product-card {
  display: flex; flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.product-card__image {
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid #d9d9d9;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-xs);
  overflow: hidden;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}
.product-card__image .product__placeholder { padding: 0; }
.product-card__image .product__placeholder svg { width: 56px; height: 56px; stroke: var(--color-cyan); opacity: 0.55; }
.product-card__name {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 1.25;
}
.product-card__sku {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.product-card__price {
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-top: 0.125rem;
}
.product-card__cta {
  align-self: flex-start;
  margin-top: 0.5rem;
  background: var(--color-btn-dark);
  color: #fff;
  font-size: 0.6875rem;
  padding: 0.5rem 0.875rem;
  min-height: 32px;
  letter-spacing: 0.12em;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
}
.product-card__cta:hover { background: #000; color: #fff; }

/* =========================================================
   Product detail (page 3)
   ========================================================= */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--space-xl);
  align-items: start;
}
.product-detail__gallery {
  display: flex; flex-direction: column;
  gap: var(--space-md);
}
.product-detail__main {
  border: 1px solid #d9d9d9;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-detail__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-detail__thumbs {
  display: flex; gap: var(--space-sm);
}
.product-detail__thumb {
  width: 100px; height: 100px;
  border: 1px solid #d9d9d9;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
}
.product-detail__thumb.is-active { border-color: var(--color-cyan); }
.product-detail__thumb svg { width: 40px; height: 40px; stroke: var(--color-cyan); opacity: 0.55; fill: none; }
.product-detail__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.product-detail__name {
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-xs);
}
.product-detail__sku {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.product-detail__price {
  font-size: 1.125rem;
  color: var(--color-text);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-lg);
}
.product-detail__chr-title {
  font-size: 0.875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}
.product-detail__specs {
  display: flex; flex-direction: column;
  margin-bottom: var(--space-md);
}
.product-detail__spec {
  font-size: 0.9375rem;
  color: var(--color-text);
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--color-border-soft);
  line-height: var(--lh-snug);
}
.product-detail__spec strong { font-weight: var(--fw-bold); }
.product-detail__description {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: var(--lh-body);
  margin-top: var(--space-md);
}

/* Productos destacados — reuse home grid but show inline within catalog */
.featured--inline { padding-block: var(--space-xl); }
.featured--inline .featured__title {
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}
.featured__divider {
  height: 1px;
  background: var(--color-border-soft);
  margin: var(--space-xl) 0;
}

/* =========================================================
   Nosotros page
   ========================================================= */
.about {
  padding-block: var(--space-2xl) var(--space-xl);
}
.about__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
  gap: var(--space-md) var(--space-2xl);
  align-items: start;
  margin-bottom: var(--space-2xl);
}
.about__title {
  font-size: clamp(2.5rem, 1.5rem + 2.6vw, 4rem);
  font-weight: var(--fw-bold);
  color: var(--color-cyan);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}
.about__copy {
  display: contents;
}
.about__copy p {
  margin: 0;
  grid-column: 2;
  font-size: 1rem;
  color: var(--color-text);
  line-height: var(--lh-body);
}
.about__copy p:nth-of-type(1) { grid-row: 1; }
.about__copy p:nth-of-type(2) { grid-row: 2; }

.about__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}
.about__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}
.value-card {
  border: 1px solid var(--color-border-soft);
  background: #fff;
  padding: var(--space-xl) var(--space-lg);
  display: flex; flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}
.value-card--featured {
  background: var(--color-cyan);
  border-color: var(--color-cyan);
  color: #fff;
}
.value-card__icon {
  width: 64px; height: 64px;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--color-cyan);
}
.value-card--featured .value-card__icon { color: #fff; }
.value-card__icon img { width: 56px; height: 56px; object-fit: contain; }
.value-card__title {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--color-cyan);
  margin: 0;
}
.value-card--featured .value-card__title { color: #fff; }
.value-card__body {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: var(--lh-body);
  margin: 0;
}
.value-card--featured .value-card__body { color: #fff; }

.about__quote {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-2xl);
  display: flex; flex-direction: column;
  gap: var(--space-md);
}
.about__quote-brand {
  font-size: 1.75rem;
  font-weight: var(--fw-medium);
  color: var(--color-accent);
  letter-spacing: -0.01em;
}
.about__quote-text {
  font-size: clamp(1.125rem, 0.8rem + 0.9vw, 1.5rem);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: var(--lh-snug);
}

/* =========================================================
   Contacto page
   ========================================================= */
.contact {
  padding-block: var(--space-xl) 0;
}
.contact__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}
.contact__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}
.contact__title {
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-md);
}
.contact__intro {
  display: flex; flex-direction: column;
  gap: var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: var(--lh-body);
  max-width: 460px;
}
.contact__intro p { margin: 0; }

.office__title {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  margin: 0 0 var(--space-md);
}
.office__list {
  display: flex; flex-direction: column;
  gap: var(--space-md);
}
.office__field {
  font-size: 0.9375rem;
}
.office__field-label {
  display: block;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: 2px;
}
.office__field-value {
  display: block;
  color: var(--color-text);
}
.office__hours-title {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  margin: var(--space-md) 0 var(--space-md);
}
.office__hours-row {
  display: flex;
  gap: var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-lg);
  max-width: 720px;
  margin-bottom: var(--space-2xl);
}
.contact-form__field { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-form__field--full { grid-column: 1 / -1; }
.contact-form__label {
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
}
.contact-form__input,
.contact-form__textarea {
  border: 1px solid #c2c2c2;
  background: #fff;
  padding: 0.875rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  width: 100%;
  outline: none;
  font-family: inherit;
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder { color: #c2c2c2; }
.contact-form__input:focus,
.contact-form__textarea:focus { border-color: var(--color-cyan); }
.contact-form__textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form__submit {
  grid-column: 1 / -1;
  justify-self: start;
  background: var(--color-btn-dark);
  color: #fff;
  border: 0;
  padding: 0.75rem 1.75rem;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  min-height: 40px;
}
.contact-form__submit:hover { background: #000; }
.contact-form__msg { grid-column: 1 / -1; font-size: 0.875rem; min-height: 1.2em; }
.contact-form__msg.is-error { color: #b00020; }
.contact-form__msg.is-ok { color: var(--color-accent); }

.contact-map {
  width: 100%;
  aspect-ratio: 24 / 7;
  background:
    repeating-linear-gradient(135deg, rgba(0,148,217,0.04) 0 8px, transparent 8px 16px),
    #eef2f7;
  border: 1px solid var(--color-border-soft);
  display: flex; align-items: center; justify-content: center;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-xl);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================
   Cart — drawer + overlay + items + form
   ========================================================== */

.cart-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1040;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .25s;
}
.cart-overlay.is-visible {
  display: block;
  opacity: 1;
}

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1050;
  width: 400px; max-width: 100vw;
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-soft);
  flex-shrink: 0;
}
.cart-drawer__title {
  font-size: 1rem; font-weight: 700; color: var(--color-primary);
  margin: 0;
}
.cart-drawer__close {
  background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--color-text-muted); line-height: 0;
  border-radius: 4px; transition: background .15s;
}
.cart-drawer__close:hover { background: var(--color-bg-subtle); }
.cart-drawer__close svg { width: 20px; height: 20px; }

.cart-drawer__body {
  flex: 1; overflow-y: auto; padding: 16px 20px;
}
.cart-drawer__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.cart-drawer__empty {
  padding: 40px 0; text-align: center;
  color: var(--color-text-muted); font-size: 0.9rem;
}
.cart-drawer__empty a { color: var(--color-accent); }

.cart-drawer__foot {
  border-top: 1px solid var(--color-border-soft);
  padding: 16px 20px;
  flex-shrink: 0;
  max-height: 60vh; overflow-y: auto;
}

/* Cart item */
.cart-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--color-border-soft);
}
.cart-item:last-child { border-bottom: none; padding-bottom: 0; }

.cart-item__img {
  width: 60px; height: 60px; flex-shrink: 0;
  background: var(--color-bg-subtle); border-radius: 4px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__img svg { width: 28px; height: 28px; color: #ccc; }

.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  display: block; font-size: 0.8125rem; font-weight: 600;
  color: var(--color-text); text-decoration: none; line-height: 1.3;
  margin-bottom: 8px;
}
.cart-item__name:hover { color: var(--color-accent); }

.cart-item__controls {
  display: flex; align-items: center; gap: 4px;
}
.cart-qty__btn {
  background: var(--color-bg-subtle); border: 1px solid var(--color-border-soft);
  border-radius: 3px; width: 28px; height: 28px; cursor: pointer;
  font-size: 1rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  color: var(--color-text); transition: background .15s;
}
.cart-qty__btn:hover { background: #e0e0e0; }
.cart-qty__input {
  width: 42px; height: 28px; border: 1px solid var(--color-border-soft);
  border-radius: 3px; text-align: center; font-size: 0.8125rem;
  color: var(--color-text);
}
.cart-qty__input::-webkit-inner-spin-button,
.cart-qty__input::-webkit-outer-spin-button { opacity: 1; }

.cart-item__remove {
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--color-text-muted); line-height: 0; flex-shrink: 0;
  border-radius: 3px; transition: background .15s, color .15s;
}
.cart-item__remove:hover { background: #fee; color: #c0392b; }
.cart-item__remove svg { width: 16px; height: 16px; }

/* Cart form */
.cart-form__title {
  font-size: 0.8125rem; font-weight: 700; color: var(--color-primary);
  margin: 0 0 10px;
}
.cart-form__fields { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cart-form__input {
  width: 100%; padding: 9px 11px; border: 1px solid var(--color-border-soft);
  border-radius: 4px; font-size: 0.8125rem; color: var(--color-text);
  font-family: var(--font-body); background: #fff;
  transition: border-color .15s;
  box-sizing: border-box;
}
.cart-form__input:focus { outline: none; border-color: var(--color-accent); }
.cart-form__textarea { resize: vertical; min-height: 70px; }

.cart-form__submit {
  width: 100%; padding: 11px 16px; background: var(--color-primary);
  color: #fff; border: none; border-radius: 4px; font-size: 0.875rem;
  font-weight: 700; cursor: pointer; transition: background .2s;
  font-family: var(--font-body);
}
.cart-form__submit:hover { background: var(--color-accent); }
.cart-form__submit:disabled { opacity: .6; cursor: not-allowed; }
.cart-form__msg { margin-top: 8px; font-size: 0.8125rem; min-height: 1.2em; }

/* Cart badge button in navbar */
.cart-btn {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--color-primary); padding: 6px; border-radius: 4px;
  position: relative; transition: opacity .15s;
  flex-shrink: 0;
}
.cart-btn:hover { opacity: .8; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn__badge {
  position: absolute; top: -2px; right: -4px;
  background: var(--color-cyan); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
  min-width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* "Agregar a cotización" button on product page */
.btn-add-cart {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; background: var(--color-primary);
  color: #fff; border: 2px solid var(--color-primary);
  border-radius: 0; font-weight: 700; font-size: 0.9375rem;
  cursor: pointer; transition: background .2s, color .2s;
  font-family: var(--font-body);
}
.btn-add-cart:hover { background: var(--color-accent); border-color: var(--color-accent); }
.btn-add-cart svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Cart data-state hooks (set by cart.js — no inline styles) */
body[data-drawer-open="true"] { overflow: hidden; }

.cart-form__msg[data-state="error"]   { color: var(--color-error, #c0392b); }
.cart-form__msg[data-state="success"] { color: var(--color-success, #27ae60); }

/* ============================================================
   Inline-style replacements — architecture audit
   ============================================================ */

/* --- Catalog sidebar empty state --- */
.cat-sidebar__cat--empty {
  color: var(--color-text-muted);
}

/* --- Catalog grid empty state --- */
.cat-grid__empty {
  grid-column: 1 / -1;
  padding-block: var(--space-2xl);
  text-align: center;
  color: var(--color-text-muted);
}

/* --- Catalog / product not-found message --- */
.catalog__not-found {
  padding-block: var(--space-2xl);
}

/* --- Category no-products message --- */
.catalog__no-products {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* --- Product detail: category breadcrumb link --- */
.cat-header__link {
  color: inherit;
  text-decoration: none;
}

/* --- Product detail: large placeholder SVG --- */
.product__placeholder-icon--lg {
  width: 120px;
  height: 120px;
  stroke: var(--color-cyan);
  opacity: 0.55;
}

/* --- Product detail: CTA row (qty + add button) --- */
.product-detail__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

/* --- Product detail: qty controls wrapper --- */
.product-detail__qty {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* --- Product detail: qty input sizing --- */
.product-detail__qty-input {
  width: 52px;
  height: 36px;
  font-size: 0.9375rem;
}

/* --- Product detail: collection label --- */
.product-detail__collection {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* --- Product detail: collection link --- */
.product-detail__collection-link {
  color: var(--color-accent);
}

/* ============================================================
   Mobile overrides — all @media (max-width) rules consolidated
   ============================================================ */

@media (max-width: 1023px) {
  .site-nav { grid-template-columns: 1fr auto; }
  .site-nav__menu { display: none; position: absolute; top: 100%; left: 0; right: 0;
                    background: #fff; border-top: 1px solid var(--color-border-soft);
                    padding: var(--space-md) var(--gutter-mobile);
                    flex-direction: column; align-items: stretch; gap: var(--space-sm); }
  .site-nav__menu.is-open { display: flex; }
  .search { width: 100%; margin-top: var(--space-md); }
  .search__btn { padding: 0.5rem; }
  .site-nav__toggle { display: inline-flex; }
  .hero__grid { grid-template-columns: 220px 1fr; gap: var(--space-lg); }
  .hero__copy { padding: var(--space-xl); max-width: 60%; }
  .featured__track .product { flex: 0 0 calc((100% - var(--space-lg)) / 2); }
  .catalog__layout { grid-template-columns: 220px 1fr; gap: var(--space-lg); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .products-list { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .about__intro { grid-template-columns: 1fr; gap: var(--space-lg); }
  .about__intro .about__title { grid-column: 1; grid-row: auto; order: 1; }
  .about__copy { display: flex; flex-direction: column; gap: var(--space-md); }
  .about__copy p { grid-column: auto; grid-row: auto; }
  .values-grid { grid-template-columns: 1fr; }
  .contact__top { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .container { padding-inline: var(--gutter-mobile); }
  .site-nav { padding-inline: var(--gutter-mobile); }

  /* Topbar — centrado en móvil (era solo ≤480px, insuficiente para 375–480px) */
  .topbar__inner { gap: var(--space-md); justify-content: center; }

  /* Hero — layout en columna: foto arriba, texto abajo */
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .hero__sidebar { order: 2; border-left: none; padding-left: 0; border-top: 1px solid var(--color-border-soft); padding-top: var(--space-md); }
  .hero__main { flex-direction: column; min-height: auto; }
  .hero__image { position: relative; inset: auto; height: 220px; }
  .hero__copy { padding: var(--space-lg); max-width: 100%; background: #fff; }

  /* Secciones principales */
  .features__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .promo__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .promo__media { max-width: 360px; margin-inline: auto; }

  /* Logos de marcas — flex wrap para que el 5° logo quede centrado */
  .brands__row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-lg); }
  .brand-logo { flex: 0 0 calc(50% - var(--space-lg) / 2); max-width: calc(50% - var(--space-lg) / 2); }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }

  /* Contacto */
  .contact-form__submit { justify-self: stretch; min-height: 44px; }
  .contact-map { aspect-ratio: auto; min-height: 240px; }
  .office__hours-row { gap: var(--space-md); }

  /* About */
  .about__quote { padding: var(--space-lg) 0 var(--space-xl); }

  /* Touch targets — mínimo 44×44px en móvil */
  .btn { min-height: 44px; }
  .cart-btn { min-width: 44px; min-height: 44px; }
  .footer__social a { width: 44px; height: 44px; }
  .footer__social img { width: 18px; height: 18px; }
  .newsletter button { min-height: 44px; }

  /* Catálogo */
  .catalog__layout { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .products-list { grid-template-columns: 1fr; }
  .filter__btn { max-width: 100%; min-height: 44px; }
}

@media (max-width: 480px) {
  .featured__track .product { flex: 0 0 80%; }
}
