/* ==========================================================================
   BIOZENTRIX - HOJA DE ESTILOS PRINCIPAL
   Design System, Tokens Oficiales, Componentes & Módulo de Catálogo/Carrito
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS OFICIALES (:root)
   -------------------------------------------------------------------------- */
:root {
  /* Paleta Corporativa Oficial Extraída de la Identidad Visual */
  --bz-primary: #0e2d4e;        /* Azul marino corporativo / Navy clínico */
  --bz-primary-dark: #081a2e;   /* Navy profundo para Topbar, Footer y Active */
  --bz-primary-light: #eaf1f8;  /* Tint azul tenue para fondos sutiles */
  
  --bz-accent: #62a628;         /* Verde bio-regenerativo distintivo (Z del logo, CTAs, íconos) */
  --bz-accent-hover: #4f881f;   /* Verde hover / focus */
  --bz-accent-light: #f0f8ea;   /* Tint verde sutil para badges e íconos */
  --bz-accent-glow: rgba(98, 166, 40, 0.35);

  --bz-whatsapp: #25d366;       /* Color distintivo de WhatsApp */
  --bz-whatsapp-hover: #20ba5a;

  --bz-bg-light: #f4f7f9;       /* Fondo general hospitalario */
  --bz-white: #ffffff;          /* Cards y contenedores limpios */
  --bz-text-main: #0c1e33;      /* Azul marino oscuro para máxima legibilidad */
  --bz-text-muted: #52667a;     /* Gris técnico azulado para párrafos secundarios */
  --bz-border: #e2e8f0;         /* Bordes sutiles */
  --bz-border-focus: #62a628;   /* Foco accesible */

  /* Tipografía Fluida con clamp() */
  --font-family-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);    /* 12px - 13px */
  --fs-sm: clamp(0.8125rem, 0.77rem + 0.2vw, 0.875rem);   /* 13px - 14px */
  --fs-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);      /* 15px - 16px */
  --fs-md: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);     /* 17px - 19px */
  --fs-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);       /* 20px - 24px */
  --fs-xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);     /* 24px - 30px */
  --fs-2xl: clamp(1.875rem, 1.65rem + 1.1vw, 2.375rem);   /* 30px - 38px */
  --fs-3xl: clamp(2.25rem, 1.95rem + 1.5vw, 3.125rem);    /* 36px - 50px */

  /* Escala de Espaciado Sistemático */
  --spacing-3xs: 0.25rem;  /* 4px */
  --spacing-2xs: 0.375rem; /* 6px */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 0.75rem;   /* 12px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4.5rem;   /* 72px */
  --spacing-section: clamp(3rem, 2.5rem + 2vw, 5rem);

  /* Bordes Redondeados */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Sombras y Elevación */
  --shadow-subtle: 0 1px 3px rgba(14, 45, 78, 0.06);
  --shadow-sm: 0 2px 8px rgba(14, 45, 78, 0.08);
  --shadow-md: 0 8px 24px rgba(14, 45, 78, 0.1);
  --shadow-lg: 0 16px 36px rgba(14, 45, 78, 0.14);
  --shadow-glow: 0 0 20px rgba(98, 166, 40, 0.35);

  /* Curvas de Aceleración de Alta Fidelidad (Emil Kowalski Design & Apple WWDC Fluid Interfaces) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Transiciones Optimizadas de Alta Respuesta (< 300ms) */
  --transition-fast: 140ms var(--ease-out);
  --transition-base: 240ms var(--ease-out);
  --transition-slow: 360ms var(--ease-out);
  --transition-drawer: 320ms var(--ease-drawer);

  /* Dimensiones */
  --container-max-width: 1260px;
  --header-height: 76px;
}

/* --------------------------------------------------------------------------
   2. RESET Y BASES GLOBALES (Mobile Native & Accessibility)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* Utilidad de accesibilidad y SEO para texto solo visible por lectores de pantalla y bots */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
  -webkit-tap-highlight-color: transparent; /* Elimina destello gris antiestético en iOS/Android */
}

button, a, [role="button"], .tappable {
  touch-action: manipulation; /* Elimina el retardo de 300ms de tap en navegadores móviles */
}

button, .btn {
  user-select: none;
  -webkit-user-select: none; /* Previene selección accidental de texto en toques largos */
}

@media (pointer: coarse) {
  input, textarea, select {
    font-size: 16px !important; /* Previene auto-zoom forzado en iOS Safari */
  }
}

body {
  font-family: var(--font-family-base);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--bz-text-main);
  background-color: var(--bz-bg-light);
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

img, svg, picture, video, iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   3. UTILIDADES DE ESTRUCTURA Y CONTENEDORES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3.5vw, var(--spacing-lg));
}

.section {
  padding-block: var(--spacing-section);
}

.text-center { text-align: center; }
.text-muted { color: var(--bz-text-muted); }
.text-accent { color: var(--bz-accent); }
.text-primary { color: var(--bz-primary); }

/* --------------------------------------------------------------------------
   4. COMPONENTES: BOTONES Y BADGES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.7rem 1.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
  line-height: 1.25;
  text-decoration: none;
}

.btn:active,
.btn-catalog:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--bz-primary);
  color: var(--bz-white);
  box-shadow: 0 4px 12px rgba(14, 45, 78, 0.25);
}

.btn-accent {
  background-color: var(--bz-accent);
  color: var(--bz-white);
  box-shadow: 0 4px 12px rgba(98, 166, 40, 0.3);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--bz-white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  font-weight: 700;
}

.btn-catalog {
  background-color: var(--bz-primary);
  color: var(--bz-white);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: transform 120ms var(--ease-out), background-color var(--transition-fast);
}

.btn-outline,
a.btn.btn-outline,
button.btn.btn-outline {
  background-color: #ffffff !important;
  color: var(--bz-primary) !important;
  border: 1.5px solid #cbd5e1 !important;
}

.btn-outline:hover,
a.btn.btn-outline:hover,
button.btn.btn-outline:hover {
  background-color: var(--bz-primary) !important;
  border-color: var(--bz-primary) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 45, 78, 0.25);
}

.btn-outline:active,
a.btn.btn-outline:active,
button.btn.btn-outline:active {
  transform: scale(0.97);
  background-color: var(--bz-primary-dark) !important;
  border-color: var(--bz-primary-dark) !important;
  color: #ffffff !important;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: var(--bz-primary-dark);
    box-shadow: 0 6px 16px rgba(8, 26, 46, 0.35);
    transform: translateY(-1px);
  }
  .btn-accent:hover {
    background-color: var(--bz-accent-hover);
    box-shadow: 0 6px 18px rgba(98, 166, 40, 0.45);
    transform: translateY(-1px);
  }
  .btn-whatsapp:hover {
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    transform: translateY(-1px);
  }
  .btn-catalog:hover {
    background-color: var(--bz-primary-dark);
    transform: translateY(-1px);
  }
  .btn-outline:hover {
    background-color: var(--bz-primary) !important;
    border-color: var(--bz-primary) !important;
    color: var(--bz-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 45, 78, 0.25);
  }
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: var(--fs-xs);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2xs);
  padding: 0.35rem 0.85rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background-color: var(--bz-accent-light);
  color: var(--bz-accent);
}

.badge-primary {
  background-color: var(--bz-primary-light);
  color: var(--bz-primary);
}

/* --------------------------------------------------------------------------
   5. TOPBAR DE CONTACTO RÁPIDO
   -------------------------------------------------------------------------- */
.topbar {
  background-color: var(--bz-primary-dark);
  color: #94a3b8;
  font-size: var(--fs-xs);
  padding-block: var(--spacing-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-xs) var(--spacing-md);
}

.topbar__highlight {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 500;
  color: #cbd5e1;
}

.topbar__contact {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2xs);
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.topbar__link:hover {
  color: var(--bz-accent);
}

@media (max-width: 640px) {
  .topbar {
    padding-block: var(--spacing-2xs);
  }
  .topbar__content {
    justify-content: center;
    text-align: center;
    gap: 2px;
  }
  .topbar__highlight {
    font-size: 0.72rem;
    width: 100%;
    justify-content: center;
  }
  .topbar__contact {
    gap: var(--spacing-sm);
    font-size: 0.72rem;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* --------------------------------------------------------------------------
   6. HEADER Y NAVEGACIÓN PRINCIPAL
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: var(--shadow-subtle);
  transition: box-shadow var(--transition-base), background-color var(--transition-base);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(14, 45, 78, 0.12);
}

/* En el catálogo, el header y navbar NO se quedan fijos (scroll normal para maximizar visualización) */
body.catalog-page .site-header,
.catalog-page .site-header {
  position: relative !important;
  top: auto !important;
  box-shadow: var(--shadow-subtle);
}

/* En el catálogo, el sidebar sticky debe anclarse suavemente al borde superior (1rem) */
body.catalog-page .catalog-sidebar,
.catalog-page .catalog-sidebar {
  top: 1rem !important;
}

.header-main {
  padding-block: clamp(0.5rem, 1.5vw, var(--spacing-sm));
  border-bottom: 1px solid var(--bz-border);
}

.header-main__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 2vw, var(--spacing-lg));
}

/* Logo Corporativo */
.brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.brand__logo-img {
  height: clamp(38px, 4.5vw, 48px);
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.footer-brand__logo {
  height: clamp(40px, 4.5vw, 50px);
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
  margin-bottom: var(--spacing-sm);
}

.product-card__code-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background-color: var(--bz-primary);
  color: var(--bz-white);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.brand__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background-color: var(--bz-primary);
  border-radius: var(--radius-xs);
  position: relative;
  font-family: 'Times New Roman', Times, serif;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand__badge-letter-b {
  color: var(--bz-white);
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1;
  margin-right: -4px;
}

.brand__badge-letter-z {
  color: var(--bz-accent);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  transform: skewX(-10deg);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--bz-primary);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand__name-z {
  color: var(--bz-accent);
}

.brand__tagline {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--bz-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Barra de Búsqueda */
.header-search {
  display: none;
  flex: 1;
  max-width: 520px;
  position: relative;
}

@media (min-width: 768px) {
  .header-search {
    display: flex;
  }
}

.header-search__input {
  width: 100%;
  padding: 0.65rem 3rem 0.65rem 1rem;
  font-size: var(--fs-sm);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-xs);
  background-color: var(--bz-bg-light);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.header-search__input:focus {
  border-color: var(--bz-accent);
  background-color: var(--bz-white);
  outline: none;
}

.header-search__btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  background-color: var(--bz-accent);
  color: var(--bz-white);
  border: none;
  border-top-right-radius: var(--radius-xs);
  border-bottom-right-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms var(--ease-out), background-color var(--transition-fast);
}

.header-search__btn:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .header-search__btn:hover {
    background-color: var(--bz-accent-hover);
  }
}

/* Acciones en Header: Asesoría + Botón Carrito */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-shrink: 0;
}

.header-support {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--bz-text-main);
  transition: color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .header-support:hover {
    color: var(--bz-accent);
  }
}

.header-support__icon {
  color: var(--bz-accent);
}

/* Botón de Carrito en Header */
.cart-trigger-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2xs);
  padding: 0.6rem 0.9rem;
  background-color: var(--bz-primary-light);
  color: var(--bz-primary);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-xs);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.cart-trigger-btn:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .cart-trigger-btn:hover {
    background-color: var(--bz-primary);
    color: var(--bz-white);
    border-color: var(--bz-primary);
  }
}

@media (max-width: 768px) {
  .header-support {
    display: none;
  }
  .navbar__actions {
    gap: var(--spacing-xs);
  }
  .brand {
    gap: var(--spacing-xs);
  }
  .brand__badge {
    width: 38px;
    height: 38px;
  }
  .brand__badge-letter-b,
  .brand__badge-letter-z {
    font-size: 1.45rem;
  }
  .brand__name {
    font-size: 1.2rem;
  }
  .brand__tagline {
    font-size: 0.52rem;
    letter-spacing: 0.06em;
  }
  .cart-trigger-btn {
    padding: 0.5rem 0.65rem;
    font-size: var(--fs-xs);
    gap: 4px;
  }
  .cart-trigger-btn .cart-btn-label {
    display: none;
  }
}

@media (max-width: 360px) {
  .brand__tagline {
    display: none;
  }
}

.cart-trigger-btn:hover {
  background-color: var(--bz-accent-light);
  border-color: var(--bz-accent);
  color: var(--bz-accent);
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 4px;
  background-color: var(--bz-accent);
  color: var(--bz-white);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

/* Barra de Navegación */
.navbar-bar {
  background-color: var(--bz-white);
}

.navbar-bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: var(--spacing-md);
}

@media (max-width: 991px) {
  .navbar-bar {
    padding-block: var(--spacing-xs);
    border-bottom: 1px solid var(--bz-border);
  }
  .navbar-bar__row {
    min-height: auto;
    padding-block: 2px;
  }
  .btn-catalog {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.8125rem;
  }
}

.nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
  }

  .nav-menu__list {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .nav-link {
    position: relative;
    padding: 0.5rem 0.85rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--bz-text-main);
    border-radius: var(--radius-xs);
    transition: color var(--transition-fast), background-color var(--transition-fast);
  }

  .nav-link:hover {
    color: var(--bz-accent);
  }

  .nav-link.is-active {
    color: var(--bz-accent);
    font-weight: 700;
  }

  .nav-link.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background-color: var(--bz-accent);
    border-radius: var(--radius-full);
  }
}

/* Botón Hamburguesa */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--bz-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }
}

/* Menú Drawer Móvil */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bz-white);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: calc(var(--spacing-xl) + env(safe-area-inset-top, 0px)) var(--spacing-lg) calc(var(--spacing-lg) + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  transition: transform var(--transition-drawer);
  overflow-y: auto;
  overscroll-behavior: contain;
  will-change: transform;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--bz-border);
}

.mobile-nav__close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--bz-text-muted);
  cursor: pointer;
  line-height: 1;
  transition: transform 120ms var(--ease-out), color var(--transition-fast);
}

.mobile-nav__close:active {
  transform: scale(0.92);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.mobile-nav__link {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--bz-text-main);
  border-radius: var(--radius-xs);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link.is-active {
  background-color: var(--bz-accent-light);
  color: var(--bz-accent);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 26, 46, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   7. HERO SECTION EN INDEX (#inicio)
   -------------------------------------------------------------------------- */
.hero-wrapper {
  background-color: var(--bz-bg-light);
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-2xl);
}

.hero-layout {
  width: 100%;
  position: relative;
}

/* ==========================================================================
   HERO SLIDER DINÁMICO & EXPANDIDO A PANTALLA COMPLETA
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--bz-primary-dark);
}

.hero-slider__track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  overflow: hidden;
  padding: 0;
  display: block;
}

.hero-slide__banner-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  min-height: 260px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.hero-slide__banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.hero-slide.is-active .hero-slide__banner-img {
  transform: scale(1.005);
}

.hero-slide__banner-link:hover .hero-slide__banner-img {
  transform: scale(1.02);
  filter: brightness(1.02);
}

/* Botón CTA Interactivo Call-To-Action sobre el banner */
.hero-slide__cta-btn {
  position: absolute;
  left: 7%;
  bottom: 14%;
  background: #3e8a2a;
  color: #ffffff;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(62, 138, 42, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
  pointer-events: auto;
  text-decoration: none;
}

.hero-slide__banner-link:hover .hero-slide__cta-btn {
  background: #337322;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(62, 138, 42, 0.6);
  color: #ffffff;
}

@media (max-width: 991px) {
  .hero-slide__banner-link {
    max-height: 440px;
  }
  .hero-slide__cta-btn {
    left: 6%;
    bottom: 12%;
    padding: 0.5rem 1.15rem;
    font-size: var(--fs-xs);
  }
}

@media (max-width: 640px) {
  .hero-slide__banner-link {
    max-height: 300px;
    min-height: 200px;
  }
  .hero-slide__cta-btn {
    left: 5%;
    bottom: 9%;
    padding: 0.4rem 0.85rem;
    font-size: 11px;
  }
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  z-index: 1;
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide.is-active .hero-slide__bg {
  transform: scale(1.05);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 26, 46, 0.96) 0%, rgba(14, 45, 78, 0.88) 55%, rgba(14, 45, 78, 0.65) 100%);
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-slide__overlay {
    background: linear-gradient(180deg, rgba(8, 26, 46, 0.95) 0%, rgba(14, 45, 78, 0.9) 100%);
  }
}

.hero-slide__grid {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-slide__grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.hero-slide__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 680px;
}

.hero-slide__tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: 2px;
}

.hero-slide__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(98, 166, 40, 0.2);
  border: 1px solid rgba(98, 166, 40, 0.45);
  color: #9fe266;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-slide__badge--sub {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}

.hero-slide__title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--bz-white);
  letter-spacing: -0.025em;
  margin: 0;
}

.hero-slide__title span {
  color: var(--bz-accent);
}

.hero-slide__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: #93c5fd;
  margin-top: -2px;
}

.hero-slide__desc {
  font-size: var(--fs-base);
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 58ch;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

@media (max-width: 600px) {
  .hero-slide__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-slide__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Tarjeta Flotante Lateral de Evidencia en Slide */
.hero-slide__card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--bz-text-main);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: 0 16px 36px rgba(8, 26, 46, 0.35);
  border-left: 5px solid var(--bz-accent);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

@media (max-width: 991px) {
  .hero-slide__card {
    display: none;
  }
}

.hero-slide__card-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: var(--spacing-xs);
}

.hero-slide__card-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bz-accent);
  display: block;
}

.hero-slide__card-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--bz-primary);
  margin-top: 2px;
}

.hero-slide__card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--bz-text-muted);
}

.hero-slide__card-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.hero-slide__card-check {
  color: var(--bz-accent);
  font-weight: 800;
  flex-shrink: 0;
}

/* Controles de Navegación del Slider */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(14, 45, 78, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--bz-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 120ms var(--ease-out), background-color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
  opacity: 0.7;
}

.hero-slider__arrow:active {
  transform: translateY(-50%) scale(0.92);
}

@media (hover: hover) and (pointer: fine) {
  .hero-slider__arrow:hover {
    background: var(--bz-accent);
    border-color: var(--bz-accent);
    color: var(--bz-white);
    transform: translateY(-50%) scale(1.08);
  }
}

.hero-slider__arrow--prev {
  left: 12px;
}

.hero-slider__arrow--next {
  right: 12px;
}

@media (max-width: 768px) {
  .hero-slider__arrow {
    top: auto;
    bottom: 10px;
    transform: none;
    width: 34px;
    height: 34px;
    background: rgba(14, 45, 78, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 15;
  }
  .hero-slider__arrow:active {
    transform: scale(0.92);
  }
  .hero-slider__arrow--prev {
    left: 10px;
  }
  .hero-slider__arrow--next {
    right: 10px;
  }
  .hero-slider__arrow svg {
    width: 16px;
    height: 16px;
  }
  .hero-slider__dots {
    bottom: 14px;
    background: rgba(14, 45, 78, 0.65);
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

.hero-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.hero-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width var(--transition-base), background-color var(--transition-fast), opacity var(--transition-fast);
  opacity: 0.85;
}

.hero-slider__dot:active {
  transform: scale(0.85);
}

.hero-slider__dot.is-active {
  width: 24px;
  background: var(--bz-accent);
  border-radius: 12px;
  opacity: 1;
}

.hero-slider__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--bz-accent);
  width: 0%;
  z-index: 12;
  transition: width 0.1s linear;
}

/* Enlaces Interactivos en la Barra de Confianza / Trust Bar */
.trust-item--link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bz-white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 120ms var(--ease-out), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.trust-item--link:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .trust-item--link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(98, 166, 40, 0.45);
    background: #ffffff;
  }

  .trust-item--link:hover .trust-item__icon {
    background-color: var(--bz-accent);
    color: var(--bz-white);
    transform: scale(1.05);
  }

  .trust-item--link:hover .trust-item__badge-action {
    color: var(--bz-primary);
  }
}

.trust-item__badge-action {
  font-size: 11px;
  font-weight: 700;
  color: var(--bz-accent);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
  transition: color var(--transition-fast);
}

/* --------------------------------------------------------------------------
   8. BANNER DE BENEFICIOS / TRUST BAR
   -------------------------------------------------------------------------- */
.trust-bar {
  background-color: var(--bz-white);
  border-bottom: 1px solid var(--bz-border);
  border-top: 1px solid var(--bz-border);
  padding-block: clamp(1rem, 2.5vw, var(--spacing-lg));
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-md);
}

@media (min-width: 576px) {
  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
}

@media (min-width: 992px) {
  .trust-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.trust-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background-color: var(--bz-accent-light);
  color: var(--bz-accent);
  flex-shrink: 0;
  font-size: 1.25rem;
}

@media (max-width: 575px) {
  .trust-item {
    gap: var(--spacing-sm);
  }
  .trust-item__icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

.trust-item__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--bz-text-main);
  line-height: 1.2;
}

.trust-item__desc {
  font-size: var(--fs-xs);
  color: var(--bz-text-muted);
}

/* --------------------------------------------------------------------------
   9. VISTA DEDICADA DE CATÁLOGO (catalogo.html)
   -------------------------------------------------------------------------- */
.catalog-hero {
  background: linear-gradient(135deg, #081a2e 0%, #0e2d4e 100%);
  color: var(--bz-white);
  padding-block: clamp(2rem, 3.5vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-hero__content {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.catalog-hero__title {
  font-size: clamp(1.65rem, 5vw, var(--fs-3xl));
  font-weight: 800;
  color: var(--bz-white);
  letter-spacing: -0.025em;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: break-word;
}

.catalog-hero__title span {
  color: var(--bz-accent);
}

.catalog-hero__desc {
  color: #cbd5e1;
  font-size: var(--fs-base);
  line-height: 1.6;
}

/* Barra de Filtros y Control de Catálogo */
.catalog-controls {
  background-color: var(--bz-white);
  border-bottom: 1px solid var(--bz-border);
  padding-block: var(--spacing-sm);
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  box-shadow: var(--shadow-subtle);
}

.catalog-controls__row {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

@media (min-width: 992px) {
  .catalog-controls__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
  }
}

.catalog-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  .catalog-search-wrapper {
    max-width: 420px;
  }
}

.catalog-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  font-size: var(--fs-sm);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-xs);
  background-color: var(--bz-bg-light);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.catalog-search-input:focus {
  border-color: var(--bz-accent);
  background-color: var(--bz-white);
  outline: none;
}

/* ==========================================================================
   LAYOUT DEL CATÁLOGO TIPO AMAZON (Sidebar Izquierda + Grid Principal)
   ========================================================================== */
.catalog-page-section {
  padding: 1.5rem 0 3.5rem;
  background-color: var(--bz-bg-light);
  min-height: 85vh;
}

.catalog-page-container {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* Sidebar Estilo Amazon / MercadoLibre */
.catalog-sidebar {
  background: var(--bz-white);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(14, 45, 78, 0.04);
  position: sticky;
  top: calc(var(--header-height) + 16px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.catalog-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bz-border);
}

.catalog-sidebar__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bz-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.catalog-sidebar__reset-btn {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bz-accent);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.catalog-sidebar__reset-btn:hover {
  text-decoration: underline;
  background: var(--bz-accent-light);
}

.catalog-sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.catalog-sidebar__group-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin: 0;
}

/* Lista Vertical de Categorías en Sidebar (Amazon Style) */
.category-pills {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.category-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: #334155;
  background-color: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.category-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.category-pill:hover {
  background-color: #f1f5f9;
  color: var(--bz-primary);
}

.category-pill:hover .pill-dot {
  background: var(--bz-accent);
  transform: scale(1.3);
}

.category-pill.is-active {
  background: var(--bz-primary-light);
  color: var(--bz-primary);
  border-color: rgba(14, 45, 78, 0.12);
  font-weight: 700;
}

.category-pill.is-active .pill-dot {
  background: var(--bz-accent);
  box-shadow: 0 0 6px rgba(98, 166, 40, 0.8);
  transform: scale(1.2);
}

.category-pill__name {
  flex: 1;
  line-height: 1.3;
}

.category-pill__count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.category-pill.is-active .category-pill__count {
  background: var(--bz-white);
  color: var(--bz-primary);
}

/* Chips de Marcas Aliadas en Sidebar */
.sidebar-brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.brand-chip {
  padding: 0.35rem 0.65rem;
  font-size: 0.76rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--bz-border);
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.brand-chip:hover {
  border-color: var(--bz-accent);
  color: var(--bz-primary);
  background: #ffffff;
}

.brand-chip.is-active {
  background: var(--bz-accent);
  border-color: var(--bz-accent);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(98, 166, 40, 0.3);
}

/* Banner Institucional en Sidebar */
.catalog-sidebar__banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #e2fbe8 100%);
  border: 1px solid rgba(98, 166, 40, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.sidebar-banner__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.sidebar-banner__text strong {
  display: block;
  font-size: 0.82rem;
  color: #166534;
  margin-bottom: 2px;
}

.sidebar-banner__text p {
  font-size: 0.74rem;
  color: #374151;
  line-height: 1.35;
  margin-bottom: 6px;
}

.sidebar-banner__link {
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
  text-decoration: none;
}

.sidebar-banner__link:hover {
  text-decoration: underline;
}

/* Área Principal Derecha */
.catalog-main-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.catalog-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bz-white);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--bz-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Grid de Productos Adaptado a Layout con Sidebar */
.catalog-main-content .catalog-modern-grid {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .catalog-main-content .catalog-modern-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .catalog-main-content .catalog-modern-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Adaptación Responsive para Tablets y Móviles */
@media (max-width: 991px) {
  .catalog-page-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .catalog-sidebar {
    position: static;
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .category-pills {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 0.5rem;
    width: 100%;
  }

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

  .category-pill {
    width: auto;
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--bz-border);
    background: #ffffff;
  }

  .category-pill.is-active {
    background: var(--bz-primary);
    color: #ffffff;
    border-color: var(--bz-primary);
  }

  .category-pill.is-active .category-pill__count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }

  .catalog-sidebar__banner {
    display: none;
  }
}

.catalog-count {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--bz-text-muted);
}

.catalog-count strong {
  color: var(--bz-primary);
}

/* Grid de Productos */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-3xl);
}

@media (min-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
  }
}

/* ==========================================================================
   TARJETA DE PRODUCTO V2 (Fiel al Modelo PDF Oficial de BioZentrix)
   ========================================================================== */
.product-card-v2 {
  background-color: var(--bz-white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(14, 45, 78, 0.05);
  display: grid;
  grid-template-columns: 210px 1fr;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  padding: 1.5rem;
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 767px) {
  .product-card-v2 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
}

.product-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(14, 45, 78, 0.09);
  border-color: rgba(98, 166, 40, 0.45);
}

.product-card-v2__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  padding: 0.5rem;
}

@media (max-width: 767px) {
  .product-card-v2__media {
    min-height: 190px;
  }
}

.product-card-v2__img {
  width: 100%;
  height: 100%;
  max-height: 250px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform var(--transition-base);
}

.product-card-v2:hover .product-card-v2__img {
  transform: scale(1.04);
}

.product-card-v2__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.product-card-v2__title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--bz-primary);
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.product-card-v2__desc-block {
  margin-bottom: 0.75rem;
}

.product-card-v2__green-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bz-accent);
  display: inline-block;
  margin-bottom: 0.25rem;
}

.product-card-v2__desc-text {
  font-size: 0.845rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 0;
}

.product-card-v2__meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-block: 0.5rem;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
}

.product-card-v2__meta-item {
  font-size: 0.845rem;
  color: #334155;
  line-height: 1.45;
}

.product-card-v2__meta-item strong {
  color: var(--bz-primary);
  font-weight: 700;
}

.product-card-v2__packages {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.product-card-v2__package-item {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--bz-primary);
  letter-spacing: 0.02em;
}

.product-card-v2__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  flex-wrap: wrap;
}

.product-card-v2__btn-spec {
  background: transparent;
  border: none;
  color: var(--bz-accent);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
  text-align: left;
}

.product-card-v2__btn-spec:hover {
  color: var(--bz-accent-hover);
  text-decoration: underline;
}

.product-card-v2__buy-group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* Selector de Cantidad Verde Clínico (Fiel a la foto) */
.qty-control-v2 {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--bz-accent);
  border-radius: 4px;
  background-color: var(--bz-white);
  height: 36px;
  overflow: hidden;
}

.qty-btn-v2 {
  width: 32px;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--bz-accent);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  user-select: none;
}

.qty-btn-v2:hover {
  background-color: var(--bz-accent-light);
  color: var(--bz-accent-hover);
}

.qty-input-v2 {
  width: 38px;
  height: 100%;
  border: none;
  border-left: 1.5px solid var(--bz-accent);
  border-right: 1.5px solid var(--bz-accent);
  background: transparent;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bz-primary);
  outline: none;
  -moz-appearance: textfield;
}

.qty-input-v2::-webkit-outer-spin-button,
.qty-input-v2::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-card-v2__btn-add {
  background: transparent;
  border: none;
  color: var(--bz-accent);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.4rem 0.25rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.product-card-v2__btn-add:hover {
  color: var(--bz-accent-hover);
  transform: translateY(-1px);
  text-decoration: underline;
}

.product-card-v2__btn-add:active {
  transform: translateY(0);
}

/* Tarjeta Médica de Producto */
.product-card {
  position: relative;
  background-color: var(--bz-white);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(98, 166, 40, 0.4);
}

.product-card__media {
  position: relative;
  width: 100%;
  height: 200px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-bottom: 1px solid var(--bz-border);
  overflow: hidden;
}

.product-card__badge-cat {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 5;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--bz-white);
  color: var(--bz-accent);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(98, 166, 40, 0.25);
  pointer-events: none;
}

.product-card__icon-visual {
  width: 72px;
  height: 72px;
  color: var(--bz-primary);
  opacity: 0.85;
  transition: transform var(--transition-base);
  position: relative;
  z-index: 1;
}

.product-card:hover .product-card__icon-visual {
  transform: scale(1.06);
  color: var(--bz-accent);
}

.product-card__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-base);
  position: relative;
  z-index: 1;
}

.product-card:hover .product-card__img {
  transform: scale(1.08);
}

.product-modal__media-preview {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
  border: 1px solid var(--bz-border);
}

.product-modal__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card__body {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--bz-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.product-card__presentation {
  font-size: var(--fs-xs);
  color: var(--bz-accent);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.product-card__description {
  font-size: var(--fs-xs);
  color: var(--bz-text-muted);
  line-height: 1.5;
  margin-bottom: var(--spacing-sm);
  flex-grow: 1;
}

.product-card__features {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--spacing-md);
  padding-block: var(--spacing-xs);
  border-top: 1px dashed var(--bz-border);
  border-bottom: 1px dashed var(--bz-border);
}

.product-card__feature-item {
  font-size: 0.75rem;
  color: var(--bz-text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-card__feature-check {
  color: var(--bz-accent);
  font-weight: bold;
  flex-shrink: 0;
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: auto;
  width: 100%;
}

/* Selector de Cantidad */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-xs);
  background-color: var(--bz-bg-light);
  overflow: hidden;
  flex-shrink: 0;
}

.qty-btn {
  background: none;
  border: none;
  width: 30px;
  height: 34px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bz-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 100ms var(--ease-out), background-color var(--transition-fast), color var(--transition-fast);
}

.qty-btn:active {
  transform: scale(0.9);
}

@media (hover: hover) and (pointer: fine) {
  .qty-btn:hover {
    background-color: var(--bz-white);
    color: var(--bz-accent);
  }
}

.qty-input {
  width: 32px;
  height: 34px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--bz-text-main);
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-add-cart {
  flex: 1;
  min-width: 0;
  background-color: var(--bz-primary);
  color: var(--bz-white);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.6rem 0.65rem;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform 120ms var(--ease-out), background-color var(--transition-fast);
}

.btn-add-cart:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .btn-add-cart:hover {
    background-color: var(--bz-accent);
    transform: translateY(-1px);
  }
}

@media (max-width: 360px) {
  .product-card__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .qty-control {
    width: 100%;
    justify-content: space-between;
  }
  .qty-input {
    flex: 1;
  }
  .btn-add-cart {
    width: 100%;
  }
}

/* Estado de Sin Resultados */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--spacing-3xl) var(--spacing-md);
  background-color: var(--bz-white);
  border: 1px dashed var(--bz-border);
  border-radius: var(--radius-sm);
}

.no-results__title {
  font-size: var(--fs-lg);
  color: var(--bz-primary);
  margin-bottom: var(--spacing-xs);
}

/* --------------------------------------------------------------------------
   10. DRAWER LATERAL DEL CARRITO / COTIZACIÓN
   -------------------------------------------------------------------------- */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 26, 46, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.cart-drawer-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bz-white);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-drawer);
  will-change: transform;
}

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

@media (max-width: 480px) {
  .cart-drawer {
    max-width: 100%;
    width: 100%;
  }
}

.cart-drawer__header {
  padding: calc(var(--spacing-md) + env(safe-area-inset-top, 0px)) var(--spacing-lg) var(--spacing-md);
  border-bottom: 1px solid var(--bz-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bz-primary);
  color: var(--bz-white);
}

@media (max-width: 480px) {
  .cart-drawer__header {
    padding: calc(var(--spacing-sm) + env(safe-area-inset-top, 0px)) var(--spacing-md) var(--spacing-sm);
  }
}

.cart-drawer__title-wrap {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.cart-drawer__title {
  font-size: var(--fs-base);
  font-weight: 700;
}

.cart-drawer__close {
  background: transparent;
  border: none;
  color: var(--bz-white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: transform 120ms var(--ease-out), opacity var(--transition-fast);
}

.cart-drawer__close:active {
  transform: scale(0.92);
}

@media (hover: hover) and (pointer: fine) {
  .cart-drawer__close:hover {
    opacity: 1;
  }
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

@media (max-width: 480px) {
  .cart-drawer__body {
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* Lista de Ítems en Carrito */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background-color: #ffffff;
  border: 1px solid var(--bz-border);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(12, 35, 64, 0.04);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cart-item:hover {
  border-color: rgba(98, 166, 40, 0.4);
  box-shadow: 0 3px 10px rgba(12, 35, 64, 0.08);
}

.cart-item__media {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.cart-item__title,
.cart-item__name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--bz-primary-dark);
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item__presentation,
.cart-item__meta {
  font-size: 0.74rem;
  color: var(--bz-text-muted);
  line-height: 1.35;
  margin: 0;
}

.cart-item__code {
  font-weight: 700;
  color: var(--bz-accent);
  font-size: 0.72rem;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cart-item__remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.cart-item__remove:hover {
  background-color: #fee2e2;
  color: #dc2626;
}

/* Estado de Carrito Vacío */
.cart-empty {
  text-align: center;
  padding: clamp(2rem, 6vh, 3.5rem) var(--spacing-md);
  margin-block: auto;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  gap: var(--spacing-sm);
}

.cart-empty__icon {
  display: block;
  margin-inline: auto;
  color: #94a3b8;
  opacity: 0.6;
  width: 56px;
  height: 56px;
}

.cart-empty__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--bz-primary);
  text-align: center;
  margin-inline: auto;
  width: 100%;
  line-height: 1.3;
}

.cart-empty__text {
  font-size: var(--fs-xs);
  color: var(--bz-text-muted);
  max-width: 28ch;
  text-align: center;
  margin-inline: auto;
  line-height: 1.55;
  width: 100%;
}

.cart-empty__btn {
  margin-top: var(--spacing-xs);
  margin-inline: auto;
}

/* Footer / Formulario del Carrito */
.cart-drawer__footer {
  padding: var(--spacing-md) var(--spacing-lg) calc(var(--spacing-md) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--bz-border);
  background-color: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

@media (max-width: 480px) {
  .cart-drawer__footer {
    padding: var(--spacing-sm) var(--spacing-md) calc(var(--spacing-sm) + env(safe-area-inset-bottom, 0px));
  }
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--bz-text-main);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--bz-border);
}

.cart-summary-count {
  color: var(--bz-accent);
  font-weight: 800;
}

/* Formulario Rápido de Datos del Doctor */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: var(--fs-xs);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-xs);
  background-color: var(--bz-white);
  transition: border-color var(--transition-fast);
}

@media (max-width: 640px) {
  .checkout-input {
    font-size: 16px;
  }
}

.checkout-input:focus {
  border-color: var(--bz-accent);
  outline: none;
}

.checkout-input.is-invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.checkout-error-msg {
  font-size: 0.7rem;
  color: #dc2626;
  display: none;
}

.checkout-error-msg.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   11. BOTÓN FLOTANTE Y TOAST DE NOTIFICACIÓN
   -------------------------------------------------------------------------- */
.floating-cart-btn {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 24px;
  z-index: 950;
  background-color: var(--bz-primary);
  color: var(--bz-white);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.85rem 1.4rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-cart-btn:active {
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .floating-cart-btn:hover {
    background-color: var(--bz-primary-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 28px rgba(14, 45, 78, 0.3);
  }
}

@media (max-width: 640px) {
  .floating-cart-btn {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    padding: 0.65rem 1.1rem;
    font-size: var(--fs-xs);
    box-shadow: 0 6px 18px rgba(14, 45, 78, 0.35);
  }
}

.toast-notification {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 1050;
  background-color: var(--bz-primary-dark);
  color: var(--bz-white);
  border-left: 4px solid var(--bz-accent);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.toast-notification.is-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .toast-notification {
    bottom: 74px;
    left: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
    font-size: var(--fs-xs);
  }
}

/* --------------------------------------------------------------------------
   12. AUTOCOMPLETADO Y BÚSQUEDA EN VIVO (Live Search Dropdown)
   -------------------------------------------------------------------------- */
.header-search {
  position: relative;
}

.live-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background-color: var(--bz-white);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  overflow: hidden;
}

.live-search-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.live-search-header {
  padding: 0.6rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--bz-primary);
  background-color: var(--bz-primary-light);
  border-bottom: 1px solid var(--bz-border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-search-list {
  max-height: 280px;
  overflow-y: auto;
}

.live-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bz-border);
  transition: background-color var(--transition-fast);
  text-decoration: none;
}

.live-search-item:last-child {
  border-bottom: none;
}

.live-search-item:hover {
  background-color: var(--bz-primary-light);
}

.live-search-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-search-item__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--bz-primary);
}

.live-search-item__cat {
  font-size: var(--fs-xs);
  color: var(--bz-text-muted);
}

.live-search-item__action {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--bz-accent);
  white-space: nowrap;
}

.live-search-footer {
  display: block;
  padding: 0.6rem 1rem;
  background-color: var(--bz-bg-light);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--bz-accent);
  text-align: center;
  border-top: 1px solid var(--bz-border);
}

.live-search-footer:hover {
  background-color: var(--bz-accent-light);
  color: var(--bz-accent-hover);
}

.live-search-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--bz-text-muted);
}

.live-search-link {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--bz-accent);
}

/* --------------------------------------------------------------------------
   13. CABECERAS DE SECCIÓN UNIFICADAS
   -------------------------------------------------------------------------- */
.section-head {
  margin-bottom: var(--spacing-2xl);
}

.section-head.text-center {
  max-width: 720px;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .section-head {
    margin-bottom: var(--spacing-xl);
  }
}

.section-head__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.85rem;
  background-color: var(--bz-accent-light);
  color: var(--bz-accent);
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.section-head__title {
  font-size: clamp(1.4rem, 5.5vw, var(--fs-2xl));
  font-weight: 800;
  color: var(--bz-primary);
  line-height: 1.25;
  margin-bottom: var(--spacing-xs);
  word-break: break-word;
  overflow-wrap: break-word;
}

.section-head__title span {
  color: var(--bz-accent);
}

.section-head__desc {
  font-size: var(--fs-base);
  color: var(--bz-text-muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .section-head__desc {
    font-size: var(--fs-sm);
  }
}

/* --------------------------------------------------------------------------
   14. SECCIÓN EMPRESA: MÉTRICAS Y PILARES CIENTÍFICOS (#empresa)
   -------------------------------------------------------------------------- */
.empresa-section {
  background: linear-gradient(180deg, var(--bz-white) 0%, var(--bz-bg-light) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background-color: var(--bz-white);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-sm);
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .stat-card {
    padding: var(--spacing-md);
  }
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bz-primary) 0%, var(--bz-accent) 100%);
}

@media (hover: hover) and (pointer: fine) {
  .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(98, 166, 40, 0.3);
  }
}

.stat-number {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--bz-primary);
  line-height: 1.1;
  margin-bottom: 4px;
  display: block;
}

.stat-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--bz-text-main);
  margin-bottom: 4px;
}

.stat-desc {
  font-size: var(--fs-xs);
  color: var(--bz-text-muted);
  line-height: 1.4;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 540px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (min-width: 720px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 900px) {
  .pillars-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
}

.pillar-card {
  background-color: var(--bz-white);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  text-align: left;
}

@media (max-width: 640px) {
  .pillar-card {
    padding: 1rem 0.85rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(98, 166, 40, 0.45);
  }
}

.pillar-card__icon {
  width: 40px;
  height: 40px;
  background-color: var(--bz-primary-light);
  color: var(--bz-primary);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-card__title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--bz-primary);
  line-height: 1.25;
  margin-bottom: 2px;
}

.pillar-card__text {
  font-size: 11.5px;
  color: var(--bz-text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   15. SHOWCASE DE PRODUCTOS DESTACADOS EN HOME (#productos)
   -------------------------------------------------------------------------- */
.home-products-section {
  background-color: var(--bz-white);
}

.home-products-footer {
  text-align: center;
  margin-top: var(--spacing-2xl);
}

/* --------------------------------------------------------------------------
   16. ESPECIALIDADES CLÍNICAS INTERACTIVAS (#aplicaciones)
   -------------------------------------------------------------------------- */
.specialties-section {
  background-color: var(--bz-bg-light);
}

.specialties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 640px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .specialties-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.specialty-card {
  background-color: var(--bz-white);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-sm);
  padding: var(--spacing-xl) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
  position: relative;
}

@media (max-width: 640px) {
  .specialty-card {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

.specialty-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--bz-accent);
}

.specialty-card__icon-wrap {
  width: 52px;
  height: 52px;
  background-color: var(--bz-accent-light);
  color: var(--bz-accent);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.specialty-card:hover .specialty-card__icon-wrap {
  background-color: var(--bz-accent);
  color: var(--bz-white);
}

.specialty-card__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--bz-primary);
  margin-bottom: var(--spacing-2xs);
  line-height: 1.3;
}

.specialty-card__desc {
  font-size: var(--fs-xs);
  color: var(--bz-text-muted);
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.specialty-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: var(--spacing-md);
}

.specialty-tag {
  font-size: 0.72rem;
  background-color: var(--bz-primary-light);
  color: var(--bz-primary);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-weight: 600;
}

.specialty-card__action {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--bz-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.specialty-card:hover .specialty-card__action {
  gap: 8px;
}

/* --------------------------------------------------------------------------
   17. ASESORÍA CLÍNICA Y COTIZACIÓN EXPRESS (#contacto)
   -------------------------------------------------------------------------- */
.contact-section {
  background: linear-gradient(180deg, var(--bz-white) 0%, var(--bz-primary-light) 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 1.5fr 1fr;
  }
}

.contact-form-card {
  background-color: var(--bz-white);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .contact-form-card {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

.contact-form-header {
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--bz-border);
  padding-bottom: var(--spacing-sm);
}

.contact-form-title {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--bz-primary);
  margin-bottom: 4px;
}

.contact-form-subtitle {
  font-size: var(--fs-xs);
  color: var(--bz-text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 640px) {
  .form-grid--2cols {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--bz-primary);
}

.form-label span {
  color: #dc2626;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-xs);
  font-size: var(--fs-sm);
  color: var(--bz-text-main);
  background-color: var(--bz-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

@media (max-width: 640px) {
  .form-control {
    font-size: 16px;
  }
}

.form-control:focus {
  outline: none;
  border-color: var(--bz-accent);
  box-shadow: 0 0 0 3px rgba(98, 166, 40, 0.2);
}

.form-control.is-invalid {
  border-color: #dc2626;
  background-color: #fff8f8;
}

.form-control.is-valid {
  border-color: var(--bz-accent);
}

.form-error {
  font-size: 0.75rem;
  color: #dc2626;
  font-weight: 600;
  display: none;
  margin-top: 2px;
}

.form-error.is-visible {
  display: block;
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.contact-info-card {
  background-color: var(--bz-primary);
  color: var(--bz-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .contact-info-card {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(98, 166, 40, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-info-title {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--bz-white);
  margin-bottom: var(--spacing-xs);
}

.contact-info-desc {
  font-size: var(--fs-xs);
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.contact-channel-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.contact-channel-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--bz-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-channel-val {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--bz-white);
}

.contact-channel-val a:hover {
  color: var(--bz-accent);
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--bz-white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   18. FOOTER CORPORATIVO
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bz-primary-dark);
  color: #94a3b8;
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-lg);
  }
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1.3fr;
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
  }
}

.footer-heading {
  color: var(--bz-white);
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
  font-size: var(--fs-sm);
}

.footer-links li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--bz-accent);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-xs);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  align-items: center;
  justify-content: space-between;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* --------------------------------------------------------------------------
   19. MODAL DE FICHA TÉCNICA CLÍNICA
   -------------------------------------------------------------------------- */
.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 26, 46, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1300;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.product-modal-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.product-modal {
  background-color: var(--bz-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-base);
}

.product-modal-backdrop.is-visible .product-modal {
  transform: translateY(0) scale(1);
}

.product-modal__header {
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--bz-primary);
  color: var(--bz-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-modal__badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bz-accent);
  background-color: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 2px;
}

.product-modal__title {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--bz-white);
  line-height: 1.2;
}

.product-modal__close {
  background: transparent;
  border: none;
  color: var(--bz-white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
  padding: 4px;
}

.product-modal__close:hover {
  opacity: 1;
}

.product-modal__body {
  padding: var(--spacing-lg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.product-modal__section-title {
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--bz-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-modal__spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xs) var(--spacing-md);
  background-color: var(--bz-bg-light);
  padding: var(--spacing-sm);
  border-radius: var(--radius-xs);
  border: 1px solid var(--bz-border);
}

@media (max-width: 575px) {
  .product-modal__spec-grid {
    grid-template-columns: 1fr;
  }
}

.product-modal__spec-item {
  font-size: var(--fs-xs);
}

.product-modal__spec-label {
  color: var(--bz-text-muted);
  font-weight: 600;
  display: block;
}

.product-modal__spec-value {
  color: var(--bz-primary);
  font-weight: 700;
}

.product-modal__indications-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px var(--spacing-md);
}

@media (max-width: 575px) {
  .product-modal__indications-list {
    grid-template-columns: 1fr;
  }
}

.product-modal__indication-item {
  font-size: var(--fs-xs);
  color: var(--bz-text-main);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.product-modal__footer {
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: #fafbfc;
  border-top: 1px solid var(--bz-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.btn-card-spec {
  background: none;
  border: none;
  color: var(--bz-primary);
  font-size: var(--fs-xs);
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
  margin-top: 4px;
}

.btn-card-spec:hover {
  color: var(--bz-accent);
}

/* --------------------------------------------------------------------------
   13. ESTILOS HERO EXPANDIDO Y LIVE SEARCH
   -------------------------------------------------------------------------- */
.hero-banner__tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--spacing-sm);
}

.hero-banner__tag--accent {
  background-color: var(--bz-accent) !important;
  color: var(--bz-white) !important;
  border: none !important;
}

.header-search {
  position: relative;
}

.live-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bz-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--bz-border);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.live-search-dropdown.is-open {
  display: block;
}

.live-search-header {
  padding: 10px 14px 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--bz-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--bz-border);
}

.live-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--bz-border);
  transition: background var(--transition-fast);
  text-decoration: none;
  color: var(--bz-text-main);
}

.live-search-item:hover {
  background-color: var(--bz-primary-light);
}

.live-search-item__title {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--bz-primary);
  display: block;
}

.live-search-item__cat {
  font-size: var(--fs-xs);
  color: var(--bz-text-muted);
}

.live-search-item__action {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--bz-accent);
}

.live-search-empty {
  padding: 16px;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--bz-text-muted);
}

.live-search-link {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--bz-accent);
}

.live-search-footer {
  display: block;
  padding: 10px 14px;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--bz-primary);
  background: var(--bz-bg-light);
  border-top: 1px solid var(--bz-border);
}

/* --------------------------------------------------------------------------
   14. PESTAÑAS INTERACTIVAS DE ESPECIALIDADES (#aplicaciones)
   -------------------------------------------------------------------------- */
.specialty-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: var(--spacing-xl);
}

.specialty-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--bz-border);
  background: var(--bz-white);
  color: var(--bz-text-main);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.specialty-tab-btn:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .specialty-tab-btn:hover {
    border-color: var(--bz-accent);
    color: var(--bz-primary);
    transform: translateY(-1px);
  }
}

.specialty-tab-btn.is-active {
  background: var(--bz-primary);
  border-color: var(--bz-primary);
  color: var(--bz-white);
  box-shadow: 0 4px 14px rgba(14, 45, 78, 0.25);
}

.specialty-tab-btn.is-active .specialty-tab-icon {
  color: var(--bz-accent);
}

.specialty-tab-panel {
  display: none;
}

.specialty-tab-panel.is-active {
  display: block;
}

.specialty-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-xl);
  background: var(--bz-white);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, var(--spacing-xl));
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .specialty-detail-grid {
    grid-template-columns: 1fr;
  }
}

.specialty-detail-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--bz-accent);
  background: var(--bz-accent-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.specialty-detail-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--bz-primary);
  margin-bottom: var(--spacing-xs);
}

.specialty-detail-desc {
  font-size: var(--fs-sm);
  color: var(--bz-text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.specialty-indications {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--spacing-lg);
}

.specialty-indication-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--bz-text-main);
  line-height: 1.5;
}

.specialty-check {
  color: var(--bz-accent);
  font-weight: bold;
  flex-shrink: 0;
}

.specialty-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.specialty-products-title {
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bz-primary);
  margin-bottom: var(--spacing-sm);
}

.specialty-products-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.specialty-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bz-bg-light);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-md);
  padding: 10px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.specialty-mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--bz-accent);
  box-shadow: var(--shadow-sm);
}

.specialty-mini-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: var(--bz-white);
  flex-shrink: 0;
}

.specialty-mini-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.specialty-mini-name {
  font-weight: 700;
  font-size: var(--fs-xs);
  color: var(--bz-primary);
}

.specialty-mini-spec {
  font-size: 11px;
  color: var(--bz-text-muted);
}

.specialty-mini-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--bz-accent);
  font-weight: 700;
  font-size: var(--fs-xs);
  cursor: pointer;
  padding: 2px 0;
  transition: color var(--transition-fast);
}

.specialty-mini-btn:hover {
  color: var(--bz-accent-hover);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   15. TABLA COMPARATIVA TÉCNICA (#comparativa)
   -------------------------------------------------------------------------- */
.comparison-section {
  background-color: var(--bz-white);
  border-top: 1px solid var(--bz-border);
  border-bottom: 1px solid var(--bz-border);
}

.comparison-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--bz-border);
  box-shadow: var(--shadow-sm);
  background: var(--bz-white);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  text-align: left;
  min-width: 680px;
}

.comparison-table th {
  background: var(--bz-primary);
  color: var(--bz-white);
  padding: 14px 16px;
  font-weight: 700;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bz-border);
  color: var(--bz-text-main);
  vertical-align: middle;
}

.comparison-table tbody tr:hover {
  background-color: var(--bz-primary-light);
}

.table-prod-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.table-prod-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: var(--bz-bg-light);
  border: 1px solid var(--bz-border);
}

.table-prod-cat {
  display: block;
  font-size: 11px;
  color: var(--bz-text-muted);
}

.btn-xs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 6px rgba(98, 166, 40, 0.25);
  transition: var(--transition);
}

.btn-xs:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(98, 166, 40, 0.35);
}

/* --------------------------------------------------------------------------
   16. BOTÓN Y EXPORTACIÓN DE PROFORMA FORMAL PDF EN EL DRAWER
   -------------------------------------------------------------------------- */
.cart-actions-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xs);
}

.btn-quote-pdf {
  background: var(--bz-white);
  color: var(--bz-primary);
  border: 1.5px solid var(--bz-primary);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color var(--transition-fast), border-color var(--transition-fast);
  font-size: var(--fs-sm);
  width: 100%;
}

.btn-quote-pdf:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .btn-quote-pdf:hover {
    background: var(--bz-primary-light);
    border-color: var(--bz-primary-dark);
  }
}

/* ==========================================================================
   20. SECCIÓN: SOLUCIONES QUIRÚRGICAS & CASOS CLÍNICOS (#casos-clinicos)
   ========================================================================== */
.cases-section {
  background: #ffffff;
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--bz-border-light);
  border-bottom: 1px solid var(--bz-border-light);
}

.solutions-head {
  margin-bottom: 2rem;
  text-align: left;
}

.solutions-head__title {
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--bz-primary-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.solutions-head__title span {
  color: var(--bz-accent);
}

.solutions-head__desc {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--bz-text-muted);
  line-height: 1.5;
  max-width: 720px;
  margin: 0;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .solutions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.solution-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e9f0;
  box-shadow: 0 4px 16px rgba(12, 35, 64, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(12, 35, 64, 0.09);
  border-color: rgba(98, 166, 40, 0.45);
}

.solution-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
}

.solution-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card:hover .solution-card__img {
  transform: scale(1.04);
}

.solution-card__body {
  padding: 1.25rem 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.solution-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bz-accent);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(98, 166, 40, 0.25);
}

.solution-card__title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--bz-primary-dark);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
}

.solution-card__desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.solution-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff !important;
  background: var(--bz-accent);
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(98, 166, 40, 0.28);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.solution-card__btn svg {
  flex-shrink: 0;
  fill: currentColor;
}

.solution-card__btn:hover {
  background: var(--bz-accent-hover, #518c20);
  box-shadow: 0 5px 14px rgba(98, 166, 40, 0.38);
  transform: translateY(-1px);
}

.solution-card__btn:active {
  transform: scale(0.98);
}

.solutions-disclaimer {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  margin: 1.75rem 0 0;
  letter-spacing: 0.02em;
}

/* Compatibilidad legacy con selectores previos */
.cases-grid { display: grid; gap: 1.5rem; }
.case-card { display: flex; flex-direction: column; }

/* ==========================================================================
   21. REDISEÑO MODERNO DEL CATÁLOGO CLÍNICO (catalogo.html)
   ========================================================================== */
.catalog-brand-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: var(--spacing-xs);
}

.brand-filter-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--bz-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.brand-chip {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--bz-border);
  background: var(--bz-white);
  color: var(--bz-text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.brand-chip:active {
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .brand-chip:hover {
    border-color: var(--bz-accent);
    color: var(--bz-primary);
    background: var(--bz-accent-light);
  }
}

.brand-chip.is-active {
  background: var(--bz-primary);
  border-color: var(--bz-primary);
  color: var(--bz-white);
}

/* Grid Moderno de Tarjetas de Producto */
.catalog-modern-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 576px) {
  .catalog-modern-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .catalog-modern-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1240px) {
  .catalog-modern-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tarjeta de Producto Rediseñada: Moderna, Limpia y Clara */
.modern-product-card {
  background: var(--bz-white);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  outline: none;
}

.modern-product-card:focus-visible {
  outline: 2px solid var(--bz-accent);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .modern-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(14, 45, 78, 0.12);
    border-color: rgba(98, 166, 40, 0.45);
  }

  .modern-product-card:hover .modern-product-card__title {
    color: var(--bz-accent);
  }

  .modern-product-card:hover .modern-product-card__btn-spec {
    border-color: var(--bz-accent);
    color: var(--bz-accent);
    background: var(--bz-accent-light);
  }

  .modern-product-card:hover .modern-product-card__img {
    transform: scale(1.06);
  }
}

.modern-product-card__header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 0;
  z-index: 2;
}

.modern-product-card__brand {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--bz-primary);
  background: var(--bz-primary-light);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
}

.modern-product-card__badge-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--bz-accent);
  background: var(--bz-accent-light);
  border: 1px solid rgba(98, 166, 40, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.modern-product-card__media {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #ffffff;
  overflow: hidden;
}

.modern-product-card__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-base);
}

.modern-product-card__body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.modern-product-card__code {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.modern-product-card__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--bz-primary);
  line-height: 1.35;
  margin-bottom: 6px;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modern-product-card__desc {
  font-size: 12px;
  color: var(--bz-text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modern-product-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.modern-product-card__chip {
  font-size: 11px;
  background: #f1f5f9;
  color: #334155;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-weight: 600;
}

.modern-product-card__chip--highlight {
  background: var(--bz-accent-light);
  color: var(--bz-accent);
  font-weight: 700;
}

.modern-product-card__footer {
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modern-product-card__actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-product-card__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #fafcff;
}

.modern-product-card__qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 34px;
  font-weight: 700;
  color: var(--bz-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 100ms var(--ease-out), background-color var(--transition-fast);
}

.modern-product-card__qty-btn:active {
  transform: scale(0.9);
}

@media (hover: hover) and (pointer: fine) {
  .modern-product-card__qty-btn:hover {
    background: var(--bz-primary-light);
  }
}

.modern-product-card__qty-input {
  width: 32px;
  height: 34px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: var(--fs-xs);
  color: var(--bz-primary);
  background: transparent;
}

.modern-product-card__btn-add {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  background: var(--bz-primary);
  color: var(--bz-white);
  border: none;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modern-product-card__btn-add:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .modern-product-card__btn-add:hover {
    background: var(--bz-accent);
  }
}

.modern-product-card__btn-spec {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--bz-border);
  border-radius: var(--radius-xs);
  color: var(--bz-text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 8px;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 120ms var(--ease-out), border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.modern-product-card__btn-spec:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .modern-product-card__btn-spec:hover {
    border-color: var(--bz-accent);
    color: var(--bz-accent);
    background: var(--bz-accent-light);
  }
}

/* Principios Biológicos PASS */
.pass-principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

@media (min-width: 600px) {
  .pass-principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pass-card {
  background: var(--bz-white);
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-sm);
  padding: var(--spacing-md);
  border-left: 4px solid var(--bz-accent);
}

.pass-card__letter {
  display: inline-block;
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--bz-accent);
  margin-bottom: 2px;
}

.pass-card__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--bz-primary);
  margin-bottom: 4px;
}

.pass-card__desc {
  font-size: var(--fs-xs);
  color: var(--bz-text-muted);
  line-height: 1.5;
}




/* ==========================================================================
   GALERÍA INTERACTIVA DE 4 MINIATURAS (Requerimiento Páginas 4 a 9 PDF)
   ========================================================================== */
.modern-product-card__gallery {
  position: relative;
  width: 100%;
  padding: 12px 14px 6px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-gallery__main {
  width: 100%;
  height: 190px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
  position: relative;
}

.card-gallery__main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 140ms ease, transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-product-card:hover .card-gallery__main img {
  transform: scale(1.03);
}


/* Botones de Navegación Rápida Anterior/Siguiente (Estilo Amazon / Mercantly) */
.card-gallery__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bz-primary-dark);
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 2px 6px rgba(14, 45, 78, 0.14);
}

.card-gallery__nav-btn--prev {
  left: 6px;
}

.card-gallery__nav-btn--next {
  right: 6px;
}

.card-gallery__main:hover .card-gallery__nav-btn {
  opacity: 0.92;
}

.card-gallery__nav-btn:hover {
  opacity: 1 !important;
  background: #ffffff;
  color: var(--bz-accent);
  border-color: var(--bz-accent);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 4px 10px rgba(98, 166, 40, 0.25);
}

.card-gallery__nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

/* Fila de Miniaturas Dinámica (2 a 4 fotos centradas y adaptables) */
.card-gallery__thumbs {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.card-gallery__thumb {
  flex: 1;
  max-width: 60px;
  height: 48px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, border-color 150ms ease, box-shadow 150ms ease;
  overflow: hidden;
}

.card-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.card-gallery__thumb:hover {
  border-color: var(--bz-accent);
  transform: translateY(-1px);
}

.card-gallery__thumb.is-active {
  border-color: var(--bz-accent);
  box-shadow: 0 0 0 2px rgba(98, 166, 40, 0.3);
  transform: scale(1.02);
}

/* Lista de Especificaciones Clínicas con Checkmarks (Fiel a PDF) */
.modern-product-card__specs-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 8px 0 12px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid var(--bz-accent);
}

.card-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: #334155;
  line-height: 1.4;
}

.card-spec-check {
  color: var(--bz-accent);
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

/* Modal con Miniaturas Dinámicas */
.product-modal__main-box {
  width: 100%;
  height: 240px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 8px;
}

.product-modal__main-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 140ms ease;
}

.product-modal__thumbs-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 16px;
}

.product-modal__thumb {
  width: 58px;
  height: 54px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms ease;
}

.product-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.product-modal__thumb:hover {
  border-color: var(--bz-accent);
  transform: translateY(-1px);
}

.product-modal__thumb.is-active {
  border-color: var(--bz-accent);
  box-shadow: 0 0 0 2px rgba(98, 166, 40, 0.35);
  transform: scale(1.03);
}

/* ==========================================================================
   BARRA DE PAGINACIÓN INTELIGENTE DEL CATÁLOGO (Alto Rendimiento)
   ========================================================================== */
.catalog-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(14, 45, 78, 0.04);
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--bz-text-muted);
}

.pagination-info strong {
  color: var(--bz-primary);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pagination-nav-btn {
  padding: 0.45rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--bz-primary);
  cursor: pointer;
  transition: var(--transition);
}

.pagination-nav-btn:hover:not(:disabled) {
  background: var(--bz-primary);
  color: #ffffff;
  border-color: var(--bz-primary);
}

.pagination-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f1f5f9;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pagination-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bz-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.pagination-btn:hover {
  border-color: var(--bz-accent);
  color: var(--bz-accent);
}

.pagination-btn.is-active {
  background: var(--bz-accent);
  border-color: var(--bz-accent);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(98, 166, 40, 0.3);
}

.page-ellipsis {
  padding: 0 4px;
  color: var(--bz-text-muted);
  font-weight: 700;
}

.pagination-density {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--bz-text-muted);
}

.pagination-select {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--bz-border);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  color: var(--bz-primary);
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

.pagination-select:focus {
  border-color: var(--bz-accent);
}

/* Grid Dinámico de Productos Destacados (Home / index.html) */
.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

