/* ==========================================================================
   NAUTITEN - SISTEMA DE DISEÑO NÁUTICO PREMIUM (MOBILE-FIRST)
   ========================================================================== */

:root {
  /* HSL Color Palette Náutica */
  --navy-deep: hsl(222, 47%, 11%);
  /* #0f172a Cabeceras y textos principales */
  --blue-ocean: hsl(217, 91%, 48%);
  /* #2563eb Acentos principales */
  --blue-cobalt: hsl(224, 76%, 38%);
  /* #1e40af Botones y acciones destacadas */
  --bg-slate: hsl(210, 40%, 98%);
  /* #f8fafc Fondo general */
  --surface-white: hsl(0, 0%, 100%);
  /* Tarjetas y superficies */
  --border-light: hsl(214, 32%, 91%);
  /* Bordes sutiles */

  /* Color WhatsApp & Acciones */
  --color-whatsapp: hsl(142, 70%, 45%);
  /* Verde WhatsApp */
  --color-whatsapp-hover: hsl(142, 70%, 38%);

  /* Estados de Pedido & Stock */
  --status-pending-bg: hsl(38, 92%, 92%);
  --status-pending-text: hsl(38, 92%, 28%);
  --status-payment-bg: hsl(217, 91%, 92%);
  --status-payment-text: hsl(217, 91%, 28%);
  --status-success-bg: hsl(142, 71%, 92%);
  --status-success-text: hsl(142, 71%, 22%);
  --status-special-bg: hsl(265, 85%, 93%);
  --status-special-text: hsl(265, 85%, 35%);

  /* Tipografía y Sombras */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

/* Reset básico y Smooth Scroll */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-slate);
  color: var(--navy-deep);
  line-height: 1.5;
  padding-bottom: 90px;
  /* Espacio para la Sticky Bottom Bar del pulgar */
  overflow-x: hidden;
}

/* Desplazamiento adecuado con Header Fijo */
section {
  scroll-margin-top: 85px;
}

/* --------------------------------------------------------------------------
   STICKY FIXED HEADER CON NAVEGACIÓN Y ACCESOS
   -------------------------------------------------------------------------- */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: white;
  padding: 0.35rem 0.85rem;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
}

/* 1. SECCIÓN IZQUIERDA: LOGO + BOTÓN CATEGORÍAS */
.header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.logo-brand span {
  color: var(--blue-ocean);
}

.logo-brand .logo-img {
  height: 28px;
  width: auto;
}

/* BOTÓN PASTILLA CATEGORÍAS EN HEADER */
.btn-header-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-header-cat-pill:hover,
.btn-header-cat-pill.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-header-cat-pill svg.cat-chevron {
  transition: transform 0.22s ease;
}

.btn-header-cat-pill.active svg.cat-chevron,
.nav-item-dropdown:hover .btn-header-cat-pill svg.cat-chevron,
.nav-item-dropdown.open .btn-header-cat-pill svg.cat-chevron {
  transform: rotate(180deg);
}

/* ENLACE CATÁLOGO CON MEGA-MENÚ DE CATEGORÍAS Y SUBMENÚS */
.nav-item-dropdown {
  position: static;
  display: inline-flex;
  align-items: center;
}

.nav-link-has-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0.4rem 0.3rem;
}

.nav-link-has-dropdown svg.cat-chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.22s ease;
}

.nav-item-dropdown:hover .nav-link-has-dropdown svg.cat-chevron,
.nav-item-dropdown.open .nav-link-has-dropdown svg.cat-chevron,
.nav-link-has-dropdown.active svg.cat-chevron,
.nav-item-simple-dropdown:hover .nav-link-has-dropdown svg.cat-chevron,
.nav-item-simple-dropdown.open .nav-link-has-dropdown svg.cat-chevron {
  transform: rotate(180deg);
}

/* DESPLEGABLE SIMPLE CONÓCENOS (SERVICIOS + QUIÉNES SOMOS) */
.nav-item-simple-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-simple-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  min-width: 210px;
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.08);
  padding: 0.5rem;
  display: none;
  z-index: 250;
  animation: megaMenuFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Puente hover invisible */
.nav-simple-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

.nav-item-simple-dropdown:hover .nav-simple-dropdown-menu,
.nav-simple-dropdown-menu:hover,
.nav-item-simple-dropdown.open .nav-simple-dropdown-menu {
  display: block;
}

.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  color: #1e293b;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.nav-dropdown-link svg {
  color: #0284c7;
  flex-shrink: 0;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
  background: #f1f5f9;
  color: var(--blue-ocean);
}

/* MEGA MENÚ FLOTANTE DE CATEGORÍAS Y SUBMENÚS */
.categories-mega-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  width: 760px;
  max-width: calc(100vw - 2rem);
  background: #ffffff;
  color: #0f172a;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(15, 23, 42, 0.08);
  display: none;
  z-index: 300;
  overflow: hidden;
  animation: megaMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Puente invisible para que el cursor no pierda el hover al bajar desde el botón al menú */
.categories-mega-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

.categories-mega-dropdown.open,
.nav-item-dropdown:hover .categories-mega-dropdown,
.categories-mega-dropdown:hover {
  display: block;
}

@media (max-width: 1024px) {
  .categories-mega-dropdown {
    width: 680px;
    right: 0;
  }
}

@keyframes megaMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mega-menu-inner {
  display: flex;
  height: 480px;
  max-height: 75vh;
}

/* Columna Izquierda: Lista de Categorías */
.mega-menu-cats-col {
  width: 310px;
  flex-shrink: 0;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  overflow-y: auto;
  padding: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.mega-menu-cats-col::-webkit-scrollbar {
  width: 5px;
}

.mega-menu-cats-col::-webkit-scrollbar-track {
  background: transparent;
}

.mega-menu-cats-col::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.mega-cat-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  color: #1e293b;
  position: relative;
  box-sizing: border-box;
}

.mega-cat-item-btn:hover,
.mega-cat-item-btn.selected {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.mega-cat-item-btn.selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3.5px;
  border-radius: 0 3px 3px 0;
  background: var(--cat-color, #2563eb);
}

.mega-cat-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.mega-cat-icon-badge svg {
  width: 16px;
  height: 16px;
}

.mega-cat-name {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: normal;
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: break-word;
}

.mega-cat-count {
  margin-left: auto;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}

.mega-cat-chevron {
  color: #94a3b8;
  display: flex;
  align-items: center;
  margin-left: 4px;
  flex-shrink: 0;
}

/* Columna Derecha: Subcategorías */
.mega-menu-subcats-col {
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
}

.mega-subcats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid #f1f5f9;
  gap: 1rem;
}

.mega-subcats-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mega-subcats-header-title h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.btn-mega-view-all-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #1e40af;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-mega-view-all-category:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.mega-subcats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.5rem;
}

.mega-subcat-pill-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  color: #334155;
  text-decoration: none;
}

.mega-subcat-pill-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  transform: translateX(2px);
}

.mega-subcat-pill-name {
  font-size: 0.81rem;
  font-weight: 600;
  line-height: 1.3;
}

.mega-subcat-pill-count {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  background: #e2e8f0;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  flex-shrink: 0;
}

.mega-subcat-pill-btn:hover .mega-subcat-pill-count {
  background: #dbeafe;
  color: #1e40af;
}

/* 2. SECCIÓN CENTRAL: BUSCADOR INTEGRADO DARK COMPACTO (34-36px, 240px -> 300px) */
.header-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
}

/* 1. SECCIÓN IZQUIERDA: LOGO + BOTÓN CATEGORÍAS */
.header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.logo-brand span {
  color: var(--blue-ocean);
}

.logo-brand .logo-img {
  height: 28px;
  width: auto;
}

/* BOTÓN PASTILLA CATEGORÍAS EN HEADER */
.btn-header-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-header-cat-pill:hover,
.btn-header-cat-pill.active {
  background: var(--blue-ocean);
  border-color: var(--blue-ocean);
}

.btn-header-cat-pill .cat-icon {
  font-size: 0.95rem;
}

.btn-header-cat-pill .cat-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.btn-header-cat-pill.active .cat-chevron {
  transform: rotate(180deg);
}

.header-search-center {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 280px;
  min-width: 220px;
  max-width: 340px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-search-center:focus-within {
  width: 320px;
}

@media (max-width: 1180px) {
  .header-search-center {
    width: 230px;
    min-width: 180px;
  }

  .header-search-center:focus-within {
    width: 260px;
  }
}

@media (max-width: 1024px) {
  .header-search-center {
    width: 190px;
    min-width: 150px;
  }

  .header-search-center:focus-within {
    width: 220px;
  }
}

.header-search-box {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 0.45rem 0 0.65rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-search-box:hover {
  background: #ffffff;
  border-color: #94a3b8;
}

.header-search-box:focus-within {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.22);
}

.header-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  margin-right: 0.45rem;
  flex-shrink: 0;
  pointer-events: none;
}

.header-search-icon svg {
  width: 16px;
  height: 16px;
  stroke: #64748b;
}

.header-search-box:focus-within .header-search-icon svg {
  stroke: #0284c7;
}

.header-global-search {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 600;
  outline: none;
  padding: 0;
  font-family: inherit;
}

.header-global-search::placeholder {
  color: #64748b;
  font-weight: 400;
  opacity: 0.9;
}

.btn-clear-global-search {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 0.25rem;
  cursor: pointer;
  display: none;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.btn-clear-global-search:hover {
  color: #0f172a;
}

.btn-global-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin-left: 0.15rem;
  padding: 0;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.btn-global-search-submit svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.btn-global-search-submit:hover {
  background: #f1f5f9;
  color: #0284c7;
  transform: scale(1.05);
}

.btn-qr-scan-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  transition: color 0.2s ease;
}

.btn-qr-scan-header:hover {
  color: #0f172a;
}

/* 3. SECCIÓN DERECHA: PEDIDOS ESPECIALES + IDIOMAS + CARRITO */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-header-special {
  color: #fef08a;
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.35);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.btn-header-special:hover {
  background: rgba(234, 179, 8, 0.3);
  color: #ffffff;
  border-color: rgba(234, 179, 8, 0.6);
}

@media (max-width: 600px) {
  .btn-header-special {
    display: none;
  }
}

.btn-header-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-header-cart:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #38bdf8;
  color: #38bdf8;
}

.header-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #0f172a;
}

.lang-selector-wrapper {
  display: flex;
  align-items: center;
}

.lang-select {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.lang-select:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

.lang-select option {
  background: var(--navy-deep);
  color: white;
}

@media (min-width: 861px) {

  #drawer-toggle,
  .btn-drawer-toggle {
    display: none !important;
  }
}

/* Navegación Desktop */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1040px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--blue-ocean);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link-special {
  color: #fde047;
  font-weight: 700;
  background: rgba(234, 179, 8, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(234, 179, 8, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.nav-link-special::after {
  display: none !important;
}

.nav-link-special:hover {
  background: rgba(234, 179, 8, 0.25);
  border-color: rgba(234, 179, 8, 0.6);
  color: #ffffff;
}

.nav-link-special::after {
  display: none;
}

/* --------------------------------------------------------------------------
   ESTILOS FLOTANTES LATERAL DERECHO (BARRA STICKY COMO EN LA IMAGEN)
   -------------------------------------------------------------------------- */
.floating-side-actions {
  position: fixed;
  right: 18px;
  top: auto;
  bottom: 95px !important;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  pointer-events: none;
}

.floating-btn {
  pointer-events: auto;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Carrito arriba a la derecha flotante */
.floating-cart-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #073a71;
  color: white;
  box-shadow: 0 4px 14px rgba(7, 58, 113, 0.4);
}

@media (max-width: 768px) {
  .floating-cart-btn {
    display: none !important;
  }
}

.floating-cart-btn:hover {
  transform: scale(1.08);
  background: hsl(212, 88%, 18%);
}

.floating-cart-badge {
  position: absolute;
  top: -2px;
  left: -2px;
  background: #ff5722;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Grupo inferior (WhatsApp + Scroll top) */
.floating-bottom-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.floating-whatsapp-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08);
  background: #20ba5a;
}

.floating-top-btn {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #073a71;
  color: white;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(7, 58, 113, 0.35);
}

.floating-top-btn:hover {
  background: hsl(212, 88%, 18%);
  transform: translateY(-2px);
}

.btn-drawer-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem;
}

@media (min-width: 860px) {
  .btn-drawer-toggle {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   DRAWER MENU MÓVIL
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: var(--surface-white);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

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

.drawer-header {
  background: var(--navy-deep);
  color: white;
  padding: 1.25rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-content {
  padding: 1rem;
}

.drawer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--navy-deep);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.drawer-link:hover {
  background: var(--bg-slate);
}

.drawer-link.highlight {
  background: var(--status-special-bg);
  color: var(--status-special-text);
  font-weight: 700;
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-title {
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.accordion-content {
  display: none;
  background: var(--bg-slate);
  padding: 0.5rem 1rem 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
}

.accordion-item.open>.accordion-content {
  display: block;
}

/* --------------------------------------------------------------------------
   CONTENEDOR PRINCIPAL
   -------------------------------------------------------------------------- */
.main-layout {
  max-width: 1200px;
  margin: 0.65rem auto 1.5rem;
  padding: 0 1rem;
}

/* --------------------------------------------------------------------------
   COMPONENTE: SLIDER HERO LOGÍSTICA CANARIAS
   -------------------------------------------------------------------------- */
.canarias-slider-wrapper {
  margin-top: 0.15rem;
  margin-bottom: 1.25rem;
}

.slider-top-title {
  display: none;
}

.canarias-slider-container {
  position: relative;
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.slider-track-viewport {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.slider-slide {
  min-width: 100%;
  box-sizing: border-box;
}

/* Hero Slide Banner con imágenes del usuario */
.hero-slide-banner {
  min-height: 140px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 1.15rem 2.25rem;
  color: white;
  position: relative;
}

@media (min-width: 768px) {
  .hero-slide-banner {
    min-height: 180px;
    padding: 1.5rem 3.5rem;
  }
}

.hero-slide-content {
  max-width: 850px;
  z-index: 2;
  width: 100%;
}

.hero-badge-tag {
  display: inline-block;
  background: #a7f3d0;
  color: #064e3b;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.35rem;
}

.hero-slide-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.35rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.4px;
}

@media (min-width: 768px) {
  .hero-slide-title {
    font-size: 1.45rem;
  }
}

.hero-slide-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .hero-slide-desc {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

/* BARRA DE SELECTORES YMM DIRECTA SOBRE EL SLIDER (DESKTOP) */
.hero-ymm-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
  width: 100%;
}

.hero-ymm-select-group {
  flex: 1;
  min-width: 150px;
}

.hero-ymm-select {
  width: 100%;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero-ymm-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}

.hero-ymm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-ymm-btn:not(:disabled):hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

.hero-ymm-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .hero-ymm-bar {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   TIRA FINA CON MOTORES ([🚤] BÚSQUEDA POR MOTORIZACIÓN YMM [🚤])
   -------------------------------------------------------------------------- */
.ymm-strip-wrapper {
  margin-top: -0.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 20;
}

.ymm-thin-strip {
  width: 100%;
  background: #0b1d3a;
  background: linear-gradient(135deg, #091a33 0%, #0d274d 50%, #091a33 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 29, 58, 0.2);
  transition: all 0.25s ease;
}

.ymm-thin-strip:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 6px 20px rgba(11, 29, 58, 0.35);
  transform: translateY(-1px);
}

.ymm-strip-side-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.outboard-icon-svg {
  width: 32px;
  height: 32px;
  color: #38bdf8;
  filter: drop-shadow(0 2px 4px rgba(56, 189, 248, 0.3));
}

.ymm-strip-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
}

.ymm-strip-badge {
  background: #a7f3d0;
  color: #064e3b;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.55rem;
  border-radius: 12px;
}

.ymm-strip-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .ymm-strip-title {
    font-size: 1.05rem;
  }
}

/* PANEL COLAPSABLE CON SELECTORES YMM */
.ymm-collapsible-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin-top 0.25s ease;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  margin-top: 0;
}

.ymm-collapsible-panel.open {
  max-height: 600px;
  opacity: 1;
  margin-top: 0.65rem;
  overflow: visible;
}

.ymm-panel-inner {
  padding: 1.15rem 1.35rem;
}

.ymm-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.ymm-panel-header h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.btn-close-ymm-panel {
  background: #f1f5f9;
  border: none;
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-close-ymm-panel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.ymm-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

@media (max-width: 640px) {
  .ymm-panel-inner {
    padding: 0.85rem 1rem;
  }

  .ymm-panel-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .ymm-collapsible-panel.open {
    max-height: 950px;
  }
}

.slider-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.825rem;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Single Slide Banner */
.single-slide-banner {
  min-height: 240px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 2rem;
  color: white;
}

.single-slide-content {
  max-width: 650px;
}

.single-slide-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.single-slide-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Botones de Navegación Flechas */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 38px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.slider-nav-btn:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.prev-btn {
  left: 8px;
}

.next-btn {
  right: 8px;
}

/* Puntos de Paginación */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: hsl(214, 32%, 80%);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dot.active {
  background: var(--blue-ocean);
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--navy-deep);
  letter-spacing: -0.3px;
}

.text-muted {
  color: hsl(215, 16%, 47%);
}

.text-sm {
  font-size: 0.825rem;
}

/* --------------------------------------------------------------------------
   COMPONENTE: MATRIZ UI SELECTOR (CABOS/CUERDAS)
   -------------------------------------------------------------------------- */
.matrix-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
  transition: box-shadow 0.2s ease;
}

.matrix-card:hover {
  box-shadow: var(--shadow-md);
}

.matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.matrix-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.matrix-table th,
.matrix-table td {
  padding: 0.75rem 0.65rem;
  text-align: center;
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.matrix-table th {
  background: hsl(210, 40%, 96%);
  font-weight: 700;
  color: var(--navy-deep);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.matrix-cell {
  background: var(--surface-white);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Hover Interactivo sobre Celdas de Variante */
.matrix-cell:hover {
  background-color: hsl(217, 91%, 97%);
  border-color: var(--blue-ocean);
}

.cell-price {
  display: block;
  font-weight: 800;
  color: var(--blue-cobalt);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.qty-input {
  width: 55px;
  padding: 0.35rem;
  text-align: center;
  border: 1px solid hsl(214, 32%, 75%);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--navy-deep);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qty-input:focus {
  border-color: var(--blue-ocean);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* --------------------------------------------------------------------------
   COMPONENTE: BUSCADOR MECÁNICO YMM (MOTORIZACIÓN)
   -------------------------------------------------------------------------- */
.ymm-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
  transition: box-shadow 0.2s ease;
}

.ymm-card:hover {
  box-shadow: var(--shadow-md);
}

.ymm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: hsl(215, 16%, 47%);
  letter-spacing: 0.2px;
}

.form-control {
  padding: 0.65rem 0.85rem;
  border: 1px solid hsl(214, 32%, 80%);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-family);
  outline: none;
  background: var(--surface-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--blue-ocean);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.or-divider {
  text-align: center;
  margin: 1.25rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: hsl(215, 16%, 55%);
  position: relative;
}

.or-divider::before,
.or-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--border-light);
}

.or-divider::before {
  left: 0;
}

.or-divider::after {
  right: 0;
}

.input-group-search {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .input-group-search {
    flex-direction: row;
  }

  .input-group-search .form-control {
    flex: 1;
  }
}

/* --------------------------------------------------------------------------
   COMPONENTE: PEDIDOS ESPECIALES (LOCALIZADOR TÉCNICO)
   -------------------------------------------------------------------------- */
.special-order-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.special-order-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--blue-ocean), var(--blue-cobalt));
}

.special-order-header {
  margin-bottom: 1.25rem;
}

.special-order-form .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

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

.btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-family: var(--font-family);
  transition: transform 0.1s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--blue-ocean);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--blue-cobalt);
}

.btn-navy {
  background: var(--navy-deep);
  color: white;
}

.btn-navy:hover {
  background: hsl(222, 47%, 18%);
}

.btn-success {
  background: hsl(142, 71%, 40%);
  color: white;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   BADGES & ALERTAS
   -------------------------------------------------------------------------- */
.badge {
  padding: 0.25rem 0.6rem;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-success {
  background: var(--status-success-bg);
  color: var(--status-success-text);
}

.badge-pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
}

.badge-special {
  background: var(--status-special-bg);
  color: var(--status-special-text);
}

.alert-info {
  background: hsl(214, 100%, 97%);
  border-left: 4px solid var(--blue-ocean);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   CATÁLOGO DE PRODUCTOS - 19 CATEGORÍAS NÁUTICAS
   -------------------------------------------------------------------------- */
.categories-catalog-card {
  background: var(--surface-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
}

.catalog-header {
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 0.88rem;
  color: hsl(215, 16%, 47%);
  margin-top: 0.25rem;
}

/* BARRA DE FILTROS (CHIPS SUPER-CATEGORÍAS) */
.category-filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.65rem;
  margin-bottom: 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  background: hsl(210, 40%, 96%);
  color: var(--navy-deep);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover:not(.active) {
  background: hsl(210, 40%, 90%);
}

.chip-btn.active {
  background: var(--navy-deep);
  color: white;
  border-color: var(--navy-deep);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

/* GRID RESPONSIVO (2 COLS EN MÓVIL, 4-5 EN ESCRITORIO) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 1rem;
  }
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 74px;
  height: auto;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--cat-color);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.12), 0 0 12px -2px var(--cat-color);
}

.cat-card.filtered-out {
  display: none;
}

.cat-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease;
}

.cat-card:hover .cat-badge {
  transform: scale(1.08);
}

.cat-badge svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  fill: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.cat-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.25;
  margin: 0 0 0.2rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.cat-desc {
  font-size: 0.74rem;
  color: hsl(215, 16%, 50%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.3;
  margin: 0;
}

@media (max-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.65rem;
  }

  .cat-card {
    padding: 0.65rem 0.75rem;
    gap: 0.6rem;
    min-height: 68px;
  }

  .cat-badge {
    width: 38px;
    height: 38px;
  }

  .cat-badge svg {
    width: 19px;
    height: 19px;
  }

  .cat-title {
    font-size: 0.8rem;
    line-height: 1.22;
  }

  .cat-desc {
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   ESTILOS LOGOTIPO OFICIAL & ICONOS SVG DE ALTA PRECISIÓN
   -------------------------------------------------------------------------- */
.logo-brand .logo-img {
  height: 38px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease;
}

.logo-brand:hover .logo-img {
  transform: scale(1.02);
}

@media (max-width: 640px) {
  .logo-brand .logo-img {
    height: 32px;
    max-width: 140px;
  }
}

.btn-drawer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-drawer-toggle:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   DRAWER MEGA-MENÚ MÓVIL (HAMBURGUESA)
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  display: block;
  opacity: 1;
}

.drawer-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--navy-deep);
  color: white;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
}

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

.drawer-header {
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  margin: 0;
}

.btn-drawer-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0.35rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-drawer-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.drawer-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md, 8px);
  transition: all 0.2s ease;
}

.drawer-link:hover,
.drawer-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #3b82f6;
  font-weight: 700;
}

.drawer-link.highlight {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

/* Acordeón interno dentro del Drawer Móvil */
.drawer-menu .accordion-item {
  margin-bottom: 0.5rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.drawer-menu .accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.drawer-menu .accordion-title:hover,
.drawer-menu .accordion-title.active {
  background: rgba(255, 255, 255, 0.12);
  color: #3b82f6;
}

.drawer-menu .accordion-content {
  display: none;
  padding: 0.75rem 0.85rem;
  background: rgba(15, 23, 42, 0.95) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-menu .accordion-item.open>.accordion-content {
  display: block !important;
}

.drawer-cat-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-md, 8px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.drawer-cat-row:hover,
.drawer-cat-row.active {
  background: rgba(255, 255, 255, 0.15);
  color: #3b82f6;
  font-weight: 700;
}

.drawer-cat-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-cat-name {
  flex: 1;
  white-space: normal;
  word-break: break-word;
}

.drawer-cat-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  flex-shrink: 0;
}

.icon-svg {
  display: inline-block;
  vertical-align: middle;
}

.icon-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.accordion-title.active .icon-chevron {
  transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   BARRA DE NAVEGACIÓN INFERIOR FIJA MÓVIL (MOBILE BOTTOM NAV BAR)
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
  padding: 0 0.25rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

@media (min-width: 769px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

.bottom-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  min-height: 48px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}

.bottom-bar-item:active {
  transform: scale(0.95);
}

.bottom-bar-item.active,
.bottom-bar-item:hover {
  color: #3b82f6;
}

.bottom-bar-item.highlight-ws {
  color: var(--color-whatsapp);
}

.bottom-bar-icon {
  stroke-width: 2.2;
}

.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--navy-deep);
}

@media (max-width: 768px) {
  body {
    padding-bottom: 75px;
  }
}

.catalog-layout-container {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: start;
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.catalog-main-content {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .catalog-layout-container {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 860px) {
  .catalog-layout-container {
    display: block;
    width: 100%;
  }
}

.catalog-layout-container.categories-full-width {
  grid-template-columns: 1fr !important;
  display: block !important;
}

.catalog-layout-container.categories-full-width #catalog-sidebar-filters,
.catalog-layout-container.categories-full-width .mobile-filter-trigger-wrapper,
.catalog-layout-container.categories-full-width #other-categories-dock {
  display: none !important;
}

.catalog-layout-container.categories-full-width .category-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.catalog-layout-container.categories-full-width .products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

@media (min-width: 1400px) {
  .catalog-layout-container.categories-full-width .products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (max-width: 640px) {
  .catalog-layout-container.categories-full-width .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.65rem;
  }
}

@media (max-width: 360px) {
  .catalog-layout-container.categories-full-width .category-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Disparador de filtros en móvil */
.mobile-filter-trigger-wrapper {
  display: none;
  margin-bottom: 1rem;
}

@media (max-width: 860px) {
  .mobile-filter-trigger-wrapper {
    display: block;
  }
}

.btn-mobile-filter-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  min-height: 48px;
  background: var(--navy-deep);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease;
}

.btn-mobile-filter-trigger:hover {
  background: hsl(222, 47%, 16%);
}

.filter-count-badge {
  background: var(--blue-ocean);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.catalog-sidebar-filters {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 85px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.catalog-sidebar-filters::-webkit-scrollbar {
  width: 5px;
}

.catalog-sidebar-filters::-webkit-scrollbar-track {
  background: transparent;
}

.catalog-sidebar-filters::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
}

.filter-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-deep);
}

.filter-header-title h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.btn-close-filter-drawer {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--navy-deep);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* Bloques de Filtro */
.filter-group {
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-light);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.65rem;
}

/* Buscador con Debounce */
.sidebar-search-wrapper {
  position: relative;
  width: 100%;
}

.sidebar-input {
  width: 100%;
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--navy-deep);
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.sidebar-input:focus {
  border-color: var(--blue-ocean);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-clear-input {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: hsl(215, 16%, 55%);
  cursor: pointer;
  font-size: 0.85rem;
}

/* Lista de Checkboxes */
.filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  padding-right: 0.15rem;
}

.filter-options-list::-webkit-scrollbar {
  width: 5px;
}

.filter-options-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.sidebar-cat-item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* 3 ZONAS DE ESTRUCTURA INTERNA */
.sidebar-cat-pill {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 8px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--cat-color, #0284c7);
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.15s ease;
  line-height: 1.25;
  user-select: none;
  box-sizing: border-box;
}

.sidebar-cat-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: none;
}

.sidebar-cat-pill.active {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--cat-color, #0f2c59);
  color: #0f2c59;
  font-weight: 800;
  box-shadow: none;
}

/* Zona 1: Icono Fijo 36px */
.sidebar-cat-icon-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.sidebar-cat-pill:hover .sidebar-cat-icon-badge {
  transform: scale(1.04);
}

.sidebar-cat-icon-badge svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
}

/* Zona 2: Nombre Flexible con salto de línea */
.sidebar-cat-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Zona 3: Agrupación derecha rígida (Contador + Flecha) */
.sidebar-cat-right-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

.sidebar-cat-count {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.sidebar-cat-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.sidebar-cat-chevron svg {
  width: 12px;
  height: 12px;
  display: block;
}

.sidebar-cat-item.open>.sidebar-cat-pill .sidebar-cat-chevron {
  transform: rotate(90deg);
  color: #0f2c59;
}

/* Subcategorías Acordeón Desplegables */
.sidebar-subcategories-list {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.35rem 0.25rem 0.35rem 0.85rem;
  margin: 0.15rem 0 0.35rem 0.25rem;
  border-left: 2px dashed rgba(148, 163, 184, 0.4);
  animation: slideDownSubcat 0.2s ease-out;
}

.sidebar-cat-item.open>.sidebar-subcategories-list {
  display: flex;
}

@keyframes slideDownSubcat {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-subcat-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem;
  min-height: 38px;
  border-radius: 6px;
  background: transparent;
  border: none;
  font-size: 0.8rem;
  color: #475569;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.25;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-subcat-pill:hover {
  background: #f1f5f9;
  color: var(--blue-cobalt, #0284c7);
  padding-left: 0.6rem;
}

.sidebar-subcat-pill.active {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  border-left: 2px solid #0284c7;
}

.sidebar-subcat-name {
  flex: 1 1 auto;
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.sidebar-subcat-count {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 10px;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: auto;
}

.sidebar-subcat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.sidebar-subcat-pill:hover .sidebar-subcat-dot,
.sidebar-subcat-pill.active .sidebar-subcat-dot {
  background: #0284c7;
  transform: scale(1.3);
}

.sidebar-subcat-name {
  flex: 1;
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.sidebar-subcat-count {
  margin-left: auto;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-filters-scrollable {
  max-height: 185px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  scrollbar-width: thin;
}

.brand-search-input {
  padding: 0.4rem 1.8rem 0.4rem 0.65rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border-light);
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--navy-deep);
  cursor: pointer;
  user-select: none;
  padding: 0.25rem 0.35rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.filter-checkbox-item:hover {
  background: var(--bg-slate);
}

.filter-checkbox-item.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.filter-checkbox-item input {
  display: none;
}

.checkbox-custom {
  width: 16px;
  height: 16px;
  border: 1.5px solid hsl(215, 20%, 65%);
  border-radius: 4px;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.filter-checkbox-item input:checked+.checkbox-custom {
  background: var(--blue-ocean);
  border-color: var(--blue-ocean);
}

.filter-checkbox-item input:checked+.checkbox-custom::after {
  content: '-';
  position: absolute;
  color: white;
  font-size: 11px;
  font-weight: 800;
  top: -2px;
  left: 2px;
}

.filter-item-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-item-count {
  font-size: 0.75rem;
  color: hsl(215, 16%, 55%);
  font-weight: 600;
}

/* Rango de Precios */
.price-inputs-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.price-field {
  flex: 1;
  position: relative;
}

.price-currency {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: hsl(215, 16%, 50%);
  font-weight: 600;
}

.price-input {
  width: 100%;
  padding: 0.45rem 0.45rem 0.45rem 1.4rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  outline: none;
}

.price-separator {
  color: hsl(215, 16%, 60%);
  font-weight: 700;
}

.range-slider-wrapper {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}

.slider-thumb {
  position: absolute;
  width: 100%;
  height: 4px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  outline: none;
}

.slider-thumb::-webkit-slider-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-ocean);
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  -webkit-appearance: none;
}

.slider-track-fill {
  height: 4px;
  background: var(--border-light);
  width: 100%;
  border-radius: 2px;
}

/* Controles de Ordenación */
.catalog-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.results-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 0;
}

.results-subtext {
  font-size: 0.8rem;
  color: hsl(215, 16%, 50%);
}

.sort-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-deep);
  white-space: nowrap;
}

.sort-select-dropdown {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  color: var(--navy-deep);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.sort-select-dropdown:focus {
  border-color: var(--blue-ocean);
}

/* MODAL / DRAWER DE FILTROS PARA MÓVIL */
.filter-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.filter-backdrop.active {
  display: block;
  opacity: 1;
}

/* BARRA DE HERRAMIENTAS Y CARRUSEL STICKY MÓVIL */
.mobile-sticky-header-container {
  display: none;
}

.mobile-sticky-toolbar {
  display: none;
}

@media (max-width: 860px) {
  .mobile-sticky-header-container {
    display: block;
    position: sticky;
    top: 54px;
    z-index: 99;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  }

  .mobile-sticky-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
  }

  /* Ocultar el selector duplicado de Ordenar en móvil para ganar espacio vertical */
  .sort-selector-wrapper {
    display: none !important;
  }

  /* Ocultar el botón flotante verde de WhatsApp en móvil (ya existe en la barra inferior) */
  .floating-whatsapp-btn {
    display: none !important;
  }

  /* Posicionar limpiamente el botón flotante Volver Arriba en la esquina inferior derecha */
  .floating-side-actions {
    top: auto !important;
    bottom: 75px !important;
    right: 12px !important;
    z-index: 120;
  }

  .floating-top-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    opacity: 0.9;
    box-shadow: 0 3px 10px rgba(7, 58, 113, 0.35);
  }

  .btn-sticky-tool {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--surface-white);
    color: var(--navy-deep);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-sticky-tool:active {
    background: var(--bg-slate);
    transform: scale(0.98);
  }

  .filter-count-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
  }

  /* PASTILLAS SLIDER HORIZONTAL DE ACCESO RÁPIDO */
  .mobile-quick-filter-pills {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem 0.6rem 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-light);
  }

  .mobile-quick-filter-pills::-webkit-scrollbar {
    display: none;
  }

  .quick-pill-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.38rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: var(--surface-white);
    color: var(--navy-deep);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  }

  .quick-pill-btn:active,
  .quick-pill-btn.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.25);
  }

  /* CAJÓN DESPLEGABLE BOTTOM SHEET EN MÓVIL */
  .drawer-drag-handle {
    display: block;
    width: 40px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 3px;
    margin: 8px auto 2px auto;
  }

  .catalog-sidebar-filters {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 94dvh !important;
    max-height: 94dvh !important;
    z-index: 1050 !important;
    border-radius: 24px 24px 0 0 !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 35px rgba(15, 23, 42, 0.25);
    visibility: hidden;
  }

  .catalog-sidebar-filters.active {
    transform: translateY(0) !important;
    visibility: visible !important;
  }

  /* FRANJA 1: CABECERA FIJA ARRIBA (TÍTULO Y ACCIONES AMPLIAS) */
  .filter-panel-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--surface-white);
    z-index: 2;
  }

  .filter-header-title h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy-deep);
    margin: 0;
  }

  .btn-clear-all-mobile {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: background-color 0.15s ease;
  }

  .btn-clear-all-mobile:active {
    background-color: #fee2e2;
  }

  .btn-close-filter-drawer {
    background: var(--bg-slate);
    border: 1px solid var(--border-light);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--navy-deep);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
  }

  .btn-close-filter-drawer:active {
    background-color: #e2e8f0;
  }

  /* FRANJA 2: CUERPO CENTRAL UNIFICADO CON SCROLL TÁCTIL MÓVIL Y FLUIDO */
  .filter-panel-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.85rem 1rem 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
  }

  .filter-panel-body .filter-group,
  .filter-panel-body .filter-accordion,
  .filter-panel-body .filter-section-island {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .filter-panel-body .filter-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--navy-deep);
    margin-bottom: 0.4rem;
  }

  .filter-panel-body .accordion-trigger {
    background: transparent;
    border: none;
    padding: 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy-deep);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }

  .filter-panel-body .accordion-content {
    padding: 0.5rem 0 0 0;
    background: transparent;
  }

  .sidebar-cat-pill {
    padding: 8px 10px;
    min-height: 44px;
    width: 100%;
  }

  .sidebar-cat-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* LISTA DESPLEGABLE VERTICAL DE MARCAS (SCROLL UNIFICADO CON EL PANEL EN MÓVIL) */
  .brand-filters-scrollable,
  .brand-chips-container {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.25rem 0.15rem;
  }

  .filter-panel-body .brand-filters-scrollable,
  .filter-panel-body .brand-chips-container,
  .filter-panel-body .filter-options-list {
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
  }

  .brand-chip-item,
  .filter-panel-body .filter-checkbox-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-deep);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
  }

  .brand-chip-item:hover,
  .filter-panel-body .filter-checkbox-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
  }

  .brand-chip-item.active,
  .filter-panel-body .filter-checkbox-item.active {
    background: #f0f9ff;
    color: #0284c7;
    border-color: #0284c7;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
  }

  .filter-panel-body .filter-checkbox-item input[type="checkbox"] {
    display: none;
  }

  .filter-panel-body .checkbox-custom {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1.5px solid #94a3b8;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s ease;
  }

  .filter-panel-body .filter-checkbox-item.active .checkbox-custom,
  .filter-panel-body .filter-checkbox-item input:checked + .checkbox-custom {
    background: #0284c7;
    border-color: #0284c7;
  }

  .filter-panel-body .filter-checkbox-item.active .checkbox-custom::after,
  .filter-panel-body .filter-checkbox-item input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  /* FRANJA 3: BOTÓN STICKY FOOTER EN LA BASE */
  .filter-panel-footer-mobile {
    flex-shrink: 0;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border-light);
    background: #ffffff;
    box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
  }

  .btn-reset-filters-link {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    text-align: center;
    padding: 0.2rem;
  }

  .filter-panel-footer-mobile .btn,
  .filter-panel-footer-mobile .btn-apply-filters-mobile {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: var(--radius-lg);
    background: var(--blue-ocean);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    cursor: pointer;
  }
}

/* ==========================================================================
   BARRA DE CHIPS DE FILTROS ACTIVOS (ESCRITORIO Y MÓVIL)
   ========================================================================== */
.active-filter-chips-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  margin-bottom: 1.15rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.06);
}

.active-filter-chips-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: #ffffff;
  border: 1px solid #7dd3fc;
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
}

.active-filter-chip:hover {
  border-color: #0284c7;
  background: #e0f2fe;
}

.active-filter-chip .chip-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  border: none;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
  margin-left: 2px;
}

.active-filter-chip .chip-remove-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.active-filter-chip-clear-all {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  cursor: pointer;
}

.active-filter-chip-clear-all:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
}


@media (min-width: 861px) {

  .btn-clear-all-mobile,
  .btn-close-filter-drawer,
  .filter-panel-footer-mobile,
  .mobile-sort-backdrop {
    display: none !important;
  }
}

/* MODAL INFERIOR (BOTTOM SHEET) DE ORDENAR EN MÓVIL */
.mobile-sort-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1060;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-sort-backdrop.active {
  display: flex !important;
  opacity: 1;
}

.mobile-sort-drawer {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 20px 20px 0 0;
  padding: 1.25rem 1.25rem 2.25rem 1.25rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  animation: slideUpSortDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes slideUpSortDrawer {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.mobile-sort-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.85rem;
}

.mobile-sort-header h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 0;
}

.btn-close-sort-drawer {
  background: var(--bg-slate);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-sort-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  min-height: 48px;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border-light);
  background: var(--bg-slate);
  color: var(--navy-deep);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  box-sizing: border-box;
}

.mobile-sort-option:active {
  transform: scale(0.98);
}

.mobile-sort-option.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
  font-weight: 800;
}

.mobile-sort-check {
  font-size: 1.1rem;
  font-weight: 900;
  color: #0284c7;
}

/* ACORDEONES DE FILTROS EN MÓVIL Y DESKTOP (REGLA 3) */
.filter-accordion {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--surface-white);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--bg-slate);
  border: none;
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.accordion-chevron {
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}

.filter-accordion.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 0.65rem 0.5rem;
}

.filter-accordion.open .accordion-content {
  display: block;
}

/* --------------------------------------------------------------------------
   PESTAÑAS DE MODO DE VISTA Y TARJETAS DE PRODUCTOS NÁUTICOS
   -------------------------------------------------------------------------- */
.view-mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.view-tab-btn {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  color: var(--navy-deep);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-tab-btn:hover {
  border-color: var(--blue-ocean);
}

.view-tab-btn.active {
  background: var(--navy-deep);
  color: white;
  border-color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  min-height: 500px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--radius-md, 8px);
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .product-card {
    padding: 0.65rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .product-image-container {
    height: 130px !important;
  }

  .product-title {
    font-size: 0.78rem;
    line-height: 1.25;
    min-height: 2rem;
    max-height: 2rem;
    margin-bottom: 0.4rem;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
  }

  .product-price {
    font-size: 0.92rem;
    text-align: center;
  }

  .btn-add-product-cart {
    width: 100%;
    min-height: 44px;
    padding: 0.4rem 0.2rem;
    font-size: 0.78rem;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.product-card {
  background: var(--surface-white, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-break: break-word;
  min-height: 380px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-ocean, #0284c7);
}

.product-card-top {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.product-image-container {
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  position: relative;
  overflow: hidden;
}

.product-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  min-height: 32px;
  max-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 6px 0 4px 0;
}

.product-footer {
  margin-top: auto !important;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-purchase-card,
.btn-add-product-cart {
  min-height: 44px !important;
  height: 44px !important;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.btn-purchase-card:hover,
.btn-add-product-cart:hover {
  background: #0284c7;
}

.pricing-tax,
.tax-note {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

/* Badge de Marca Interactivo en 1 Clic con Miniatura Oficial */
.product-card__brand-wrapper {
  margin-top: 0.35rem;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
}

.brand-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 3px 10px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease-in-out, transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  max-width: 100%;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.brand-badge-pill:hover,
.brand-badge-pill:active,
.brand-badge-pill:focus {
  background-color: #ffffff !important;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

.brand-badge-pill__logo {
  height: 18px;
  max-height: 22px;
  max-width: 80px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 0.95;
  transition: opacity 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.brand-badge-pill:hover .brand-badge-pill__logo {
  opacity: 1;
  transform: scale(1.05);
}

.brand-badge-pill__text {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.brand-badge-pill:hover .brand-badge-pill__text {
  color: #0369a1;
}

/* Marca dentro del Modal de Ficha Técnica */
.modal-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  height: 32px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  text-decoration: none;
  font-family: inherit;
}

.modal-brand-badge:hover,
.modal-brand-badge:active,
.modal-brand-badge:focus {
  background-color: #ffffff !important;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

.modal-brand-badge--disabled {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  cursor: default;
}

.modal-brand-badge--disabled:hover {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  box-shadow: none;
}

.modal-brand-badge__logo {
  height: 22px;
  max-width: 70px;
  width: auto;
  object-fit: contain;
}

.modal-brand-badge__text {
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  line-height: 1;
}

/* Legacy product-badge-brand compatibility */
.product-badge-brand {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 7px;
  margin-top: 0.35rem;
  margin-bottom: 0.2rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  width: fit-content;
}

.product-badge-brand:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.product-badge-brand .brand-bracket {
  color: #0284c7;
  font-weight: 900;
}

.product-badge-brand:hover .brand-bracket {
  color: #ffffff;
}


.product-ref {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.product-shipping-text {
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.3;
  margin: 0.4rem 0;
  display: block;
}

.product-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.35;
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
  min-height: 2.2rem;
  max-height: 2.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.btn-add-product-cart {
  width: 100%;
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-add-product-cart:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.other-categories-dock {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1rem 0.75rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.dock-header h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border-light);
}

.dock-categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dock-cat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  border-left: 3.5px solid var(--cat-color, var(--blue-ocean));
  background: var(--surface-white);
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: break-word;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dock-cat-item:hover {
  border-color: var(--cat-color, var(--blue-ocean));
  background: color-mix(in srgb, var(--cat-color, #0284c7) 8%, #ffffff);
  transform: translateX(3px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.dock-cat-item.active {
  background: color-mix(in srgb, var(--cat-color, #0284c7) 14%, #ffffff);
  border: 1.5px solid var(--cat-color, var(--blue-ocean));
  border-left-width: 4px;
  color: var(--navy-deep);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--cat-color, #0284c7) 28%, transparent);
  transform: translateX(2px);
}

.dock-icon {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dock-cat-item.active .dock-icon {
  transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   CARRUSEL HORIZONTAL DE FAMILIAS MÓVIL - PREMIUM APP DESIGN
   -------------------------------------------------------------------------- */
.mobile-family-carousel {
  display: none;
  margin: 0;
  width: 100%;
  overflow: visible;
}

@media (max-width: 860px) {
  .mobile-family-carousel {
    display: block;
    padding: 0.2rem 0 0.45rem 0;
  }
}

.carousel-chips-track {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0.85rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-chips-track::-webkit-scrollbar {
  display: none;
}

.carousel-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: var(--surface-white);
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.carousel-chip-btn:active {
  transform: scale(0.96);
}

.carousel-chip-btn:hover:not(.active) {
  border-color: var(--cat-color, var(--blue-ocean));
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.carousel-chip-btn.active {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  transform: scale(1.02);
}

.chip-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cat-color, var(--blue-ocean));
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--cat-color, #0284c7) 40%, transparent);
  transition: transform 0.2s ease;
}

.carousel-chip-btn.active .chip-badge {
  background: #ffffff;
  color: var(--navy-deep);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chip-title {
  line-height: 1;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   INDICADOR DE CARGA (SCROLL INFINITO)
   -------------------------------------------------------------------------- */
.infinite-scroll-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--nautic-blue);
  font-weight: 500;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 119, 182, 0.2);
  border-left-color: var(--nautic-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN PRE-PEDIDO Y MODALES (MOBILE-FIRST)
   -------------------------------------------------------------------------- */
.po-modal-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  flex: 1;
  overflow-y: auto;
}

.po-col-left {
  padding: 24px;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.po-col-right {
  padding: 24px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.po-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 860px) {
  .po-modal-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .po-col-left {
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    gap: 16px;
  }

  .po-col-right {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .po-form-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .po-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   ESTILOS DE SECCIONES GENERALES & ADAPTACIÓN CANARY YACHT SERVICES
   ========================================================================== */
.content-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 2.5rem auto;
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  scroll-margin-top: 85px;
}

.section-container {
  width: 100%;
}

.text-center {
  text-align: center;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: hsl(215, 16%, 40%);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   QUIÉNES SOMOS / CONÓCENOS
   -------------------------------------------------------------------------- */
.quienes-somos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.quienes-somos-text .story-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 1rem;
}

.quienes-somos-text p {
  font-size: 0.98rem;
  color: hsl(215, 16%, 30%);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.brand-allies-box {
  background: var(--bg-slate);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-top: 1.5rem;
}

.allies-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.allies-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ally-tag {
  background: var(--surface-white);
  color: var(--blue-cobalt);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.quienes-somos-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.pillar-card {
  background: var(--bg-slate);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-ocean);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue-ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.pillar-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.5rem;
}

.pillar-card p {
  font-size: 0.88rem;
  color: hsl(215, 16%, 45%);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   SERVICIOS NÁUTICOS
   -------------------------------------------------------------------------- */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.servicio-card {
  background: var(--surface-white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-ocean);
}

.servicio-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.servicio-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.6rem;
}

.servicio-card p {
  font-size: 0.9rem;
  color: hsl(215, 16%, 40%);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.servicio-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.servicio-bullets li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-cobalt);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.servicio-bullets li::before {
  content: "•";
  font-weight: 800;
  color: var(--blue-ocean);
}

/* --------------------------------------------------------------------------
   ENVÍOS & LOGÍSTICA
   -------------------------------------------------------------------------- */
.envios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.envio-feature-card {
  background: var(--bg-slate);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  position: relative;
  text-align: center;
}

.envio-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-ocean);
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.envio-feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.6rem;
}

.envio-feature-card p {
  font-size: 0.9rem;
  color: hsl(215, 16%, 45%);
  line-height: 1.5;
}

.marinas-coverage-box {
  background: rgba(15, 23, 42, 0.03);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
}

.marinas-coverage-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 1rem;
}

.marinas-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.marina-pill {
  background: var(--surface-white);
  color: var(--navy-deep);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   CONTACTO
   -------------------------------------------------------------------------- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
}

.contacto-info-card {
  background: var(--navy-deep);
  color: white;
  padding: 2.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.contacto-info-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: white;
}

.contacto-intro {
  font-size: 0.92rem;
  color: hsl(215, 20%, 75%);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.info-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.info-item strong {
  display: block;
  font-size: 0.88rem;
  color: hsl(215, 20%, 80%);
  margin-bottom: 0.2rem;
}

.info-item p {
  font-size: 0.95rem;
  margin: 0;
  color: white;
}

.info-item a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.info-item a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.contacto-form-card {
  background: var(--bg-slate);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.contacto-form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 1.25rem;
}

.contacto-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   FOOTER OFICIAL NAUTITEN
   -------------------------------------------------------------------------- */
.footer-nautiten {
  background: var(--navy-deep);
  color: white;
  padding: 4rem 1.5rem 2rem 1.5rem;
  margin-top: 4rem;
  border-top: 3px solid var(--blue-ocean);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-slogan {
  font-size: 0.9rem;
  color: hsl(215, 20%, 75%);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: var(--blue-ocean);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--blue-ocean);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: hsl(215, 20%, 75%);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 4px;
}

.footer-badge-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-badge-item {
  font-size: 0.85rem;
  color: hsl(215, 20%, 80%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: hsl(215, 20%, 65%);
}

.footer-legal-links {
  display: flex;
  gap: 1rem;
}

.btn-legal-link {
  background: none;
  border: none;
  color: hsl(215, 20%, 75%);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.btn-legal-link:hover {
  color: white;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   MODALES LEGALES
   -------------------------------------------------------------------------- */
.legal-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.legal-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.legal-modal-backdrop.active .legal-modal-card {
  transform: translateY(0);
}

.legal-modal-header {
  padding: 1.25rem 1.5rem;
  background: var(--navy-deep);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.btn-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.legal-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.92rem;
  color: hsl(215, 16%, 30%);
  line-height: 1.6;
}

.legal-modal-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {

  .quienes-somos-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .quienes-somos-cards {
    grid-template-columns: 1fr;
  }

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

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

/* --------------------------------------------------------------------------
   BANNER DE CONSENTIMIENTO DE COOKIES (RGPD / LSSI)
   -------------------------------------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 750px;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-link-light {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
}

.btn-link-light:hover {
  color: white;
}

.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   ESTILOS COMPONENTE: LOCALIZADOR POR FOTO & PEDIDOS ESPECIALES
   ========================================================================== */

.badge-free-service {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.photo-locator-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.25rem;
  transition: all 0.25 ease;
}

.photo-locator-box:hover {
  border-color: var(--blue-ocean, #0284c7);
  background: #f0f9ff;
}

.photo-locator-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-deep, #0f172a);
  margin-bottom: 0.25rem;
}

.photo-locator-header p {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.photo-upload-dropzone {
  display: block;
  background: #ffffff;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.photo-upload-dropzone:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.dropzone-title {
  font-size: 1rem;
  color: #0f172a;
}

.dropzone-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Vista previa de miniaturas */
.photo-preview-container {
  margin-top: 1.25rem;
  background: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
}

.preview-thumb-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  height: 100px;
}

.preview-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-remove-thumb {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(225, 29, 72, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-remove-thumb:hover {
  background: #be123c;
}

/* Tarjeta de consejos */
.photo-tips-card {
  margin-top: 1.25rem;
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: #1e3a8a;
}

.tips-header {
  margin-bottom: 0.35rem;
}

.tips-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.5;
}

.tips-list li {
  margin-bottom: 0.25rem;
}

/* Botón interactivo de WhatsApp con verde institucional anti-bots */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md, 8px);
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #20ba5a, #0e7065);
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.45);
  transform: translateY(-1px);
}

/* =============================================================================
   MOTORIZACIÓN YMM, STICKY BAR, BADGES Y CONFLICTOS
   ============================================================================= */

/* 1. Sticky Motor Bar */
.sticky-motor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md, 8px);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  border-left: 4px solid var(--blue-ocean, #0284c7);
  animation: fadeInDown 0.3s ease-out;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sticky-motor-bar .motor-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
}

.sticky-motor-bar .motor-icon {
  font-size: 1.25rem;
}

.sticky-motor-bar .motor-label {
  color: #94a3b8;
  font-weight: 500;
}

.sticky-motor-bar .active-motor-name {
  color: #38bdf8;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.btn-clear-active-motor {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-active-motor:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* 2. Banner de Conflicto de Motor */
.motor-conflict-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md, 8px);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeInDown 0.3s ease-out;
}

.motor-conflict-banner .conflict-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #92400e;
  font-weight: 600;
}

.motor-conflict-banner .conflict-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-conflict {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-conflict {
  background: #ffffff;
  color: #92400e;
  border: 1px solid #d97706;
}

.btn-outline-conflict:hover {
  background: #fef3c7;
}

.btn-primary-conflict {
  background: #d97706;
  color: #ffffff;
  border: 1px solid #d97706;
}

.btn-primary-conflict:hover {
  background: #b45309;
}

/* 3. Badges Semáforo de Compatibilidad en Tarjetas de Producto */
.product-compatibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.28rem 0.65rem;
  border-radius: 14px;
  margin-top: 0.45rem;
  letter-spacing: 0.1px;
}

.badge-compatible-green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  box-shadow: 0 1px 3px rgba(34, 197, 94, 0.15);
}

.badge-universal-amber {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.badge-incompatible-red {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Cruce de Referencia OEM en la tarjeta */
.product-oem-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #475569;
  background: #f1f5f9;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  margin: 0.3rem 0;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-oem-row .oem-tag {
  font-weight: 800;
  color: #0f172a;
  flex-shrink: 0;
}

.product-oem-row .oem-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: #0369a1;
}

/* Desglose Fiscal Canario (Precio Neto + 7% IGIC debajo) */
.product-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.product-pvp-net {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.product-pvp-net .tax-note,
.tax-note {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 1px;
  margin-left: 0;
}

.product-price-igic-incl {
  display: none !important;
}

/* Tarjeta Sidebar de WhatsApp con Mecánico */
.sidebar-whatsapp-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md, 8px);
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.1);
}

.sidebar-whatsapp-card .sw-icon {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
  display: block;
}

.sidebar-whatsapp-card h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #14532d;
  margin-bottom: 0.25rem;
}

.sidebar-whatsapp-card p {
  font-size: 0.75rem;
  color: #166534;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.btn-sidebar-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #25D366;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}

.btn-sidebar-whatsapp:hover {
  background: #1eb857;
  transform: translateY(-1px);
}

/* 4. Tarjeta Fallback de WhatsApp en 0 Resultados */
.ymm-fallback-card {
  grid-column: 1 / -1;
  background: #f8fafc;
  border: 2px dashed #38bdf8;
  border-radius: var(--radius-lg, 14px);
  padding: 2.5rem 1.75rem;
  text-align: center;
  margin: 1.5rem 0;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.1);
}

.ymm-fallback-card .fallback-icon {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.ymm-fallback-card h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy-deep, #0f172a);
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

.ymm-fallback-card p {
  color: #475569;
  font-size: 0.92rem;
  max-width: 620px;
  margin: 0 auto 1.35rem;
  line-height: 1.55;
}

.btn-whatsapp-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.75rem 1.45rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-fallback:hover {
  background: #1eb857;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

/* 5. Estado Atenuado en Cascada YMM cuando se escribe en OEM */
.ymm-dimmed {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* 6. Optimización Scroll en Menú de Marcas */
.brand-filters-scrollable {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

/* 7. Píldoras de Filtros Activos (Active Filter Chips) */
.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.15rem;
  padding: 0.5rem 0.25rem;
  animation: fadeInDown 0.2s ease-out;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f1f5f9;
  color: var(--navy-deep, #0f172a);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.active-chip:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.active-chip .chip-remove-icon {
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  color: #64748b;
  transition: color 0.2s ease;
}

.active-chip:hover .chip-remove-icon {
  color: #ef4444;
}

.active-chip-motor {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

.btn-clear-all-chips {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 8. Ergonomía Táctil en Móvil (Pulsación de 44px - 48px) */
@media (max-width: 860px) {
  .ymm-grid .form-control {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .input-group-search .form-control {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .input-group-search .btn {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .btn-add-product-cart {
    min-height: 44px;
    font-size: 0.88rem;
    font-weight: 800;
  }

  .filter-checkbox-item {
    padding: 0.45rem 0.35rem;
    min-height: 38px;
  }

  .product-price {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0369a1 !important;
  }
}

/* =============================================================================
   BÚSQUEDA INTELIGENTE CON FALLBACK GLOBAL Y COMPATIBILIDAD YMM
   ============================================================================= */

.search-fallback-container {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  animation: fadeInDown 0.35s ease-out;
  margin-bottom: 2rem;
}

.search-fallback-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 1.75rem auto;
}

.fallback-badge-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.fallback-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.fallback-breakdown-wrapper {
  margin-top: 1rem;
}

.fallback-breakdown-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.fallback-breakdown-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.fallback-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0369a1;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fallback-category-chip:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
}

.fallback-category-chip .chip-count {
  background: rgba(3, 105, 161, 0.12);
  color: inherit;
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.fallback-category-chip:hover .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.fallback-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.fallback-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fallback-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  border-color: #38bdf8;
}

.fallback-card-top {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.fallback-thumb-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  padding: 4px;
  flex-shrink: 0;
}

.fallback-meta {
  flex: 1;
  min-width: 0;
}

.fallback-sku-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #334155;
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}

.fallback-section-tag {
  font-size: 0.76rem;
  color: #0284c7;
  font-weight: 700;
  display: block;
}

.fallback-product-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.fallback-price-box {
  margin-bottom: 0.85rem;
}

.ymm-compat-badge {
  font-size: 0.78rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  font-weight: 700;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.ymm-compat-badge.compat-yes {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.ymm-compat-badge.compat-no {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.ymm-compat-badge.compat-info {
  background: #f0f9ff;
  color: #075985;
  border: 1px solid #bae6fd;
}

.fallback-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.fallback-btn-add {
  flex: 1.2;
  background: var(--blue-ocean, #0284c7);
  color: #ffffff;
  border: none;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fallback-btn-add:hover {
  background: #0369a1;
}

.fallback-btn-view {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.fallback-btn-view:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.fallback-actions-bar {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 1rem;
}

/* ==========================================================================
   MATRIZ TÉCNICA 2D, SELECTORES 1D, SWATCHES Y CART FIDELITY
   ========================================================================== */

/* 1. Selector 1D integrado en Tarjeta de Catálogo */
.variant-select-wrapper {
  margin: 0.5rem 0 0.75rem 0;
  position: relative;
}

.product-variant-dropdown {
  width: 100%;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-deep);
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.2s ease;
  appearance: auto;
}

.product-variant-dropdown:focus {
  outline: none;
  border-color: var(--blue-ocean);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.badge-matrix-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #bae6fd;
  margin-bottom: 0.45rem;
}

.btn-open-matrix-modal {
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}

.btn-open-matrix-modal:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
}

/* 2. Modal de Matriz Bidimensional 2D */
.matrix-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.matrix-modal-container {
  background: #ffffff;
  border-radius: 20px;
  max-width: 950px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.matrix-modal-header {
  padding: 1.5rem 1.75rem 1rem 1.75rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.matrix-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f2c59;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.matrix-modal-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.matrix-modal-close {
  background: #f1f5f9;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.matrix-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.matrix-modal-body {
  padding: 1.5rem 1.75rem;
  flex: 1;
}

/* 3. Selector de Muestras de Color (Color Swatches) */
.color-swatches-section {
  margin-bottom: 1.5rem;
}

.color-swatches-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
  display: block;
}

.color-swatches-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.color-swatch-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.color-swatch-chip.active {
  box-shadow: 0 0 0 3px #0284c7, 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.color-swatch-chip.is-light {
  border-color: #cbd5e1;
}

/* 4. Tabla Matricial 2D (Desktop) */
.matrix-table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.88rem;
}

.matrix-table th {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  font-weight: 800;
  color: #0f2c59;
  border-bottom: 2px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  white-space: nowrap;
}

.matrix-table th:last-child {
  border-right: none;
}

.matrix-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  vertical-align: middle;
}

.matrix-table td:last-child {
  border-right: none;
}

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

.matrix-row-header {
  font-weight: 800;
  color: #0f172a;
  background: #fdfdfd;
  text-align: left;
  padding-left: 1.25rem !important;
  border-right: 2px solid #e2e8f0 !important;
  font-size: 0.95rem;
  white-space: nowrap;
}

.matrix-cell-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.matrix-price-val {
  font-weight: 800;
  color: #0369a1;
  font-size: 0.92rem;
}

.matrix-price-igic {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.matrix-qty-input {
  width: 62px;
  height: 34px;
  text-align: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.2s ease;
}

.matrix-qty-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
  background: #f0f9ff;
}

.matrix-qty-input.has-qty {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #15803d;
}

.matrix-cell-disabled {
  color: #94a3b8;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem 0;
  background: #f8fafc;
}

/* 5. Selector 2 Pasos para Móvil (Mobile Matrix View) */
.matrix-mobile-stepper {
  display: none;
}

@media (max-width: 768px) {
  .matrix-table-wrapper {
    display: none;
  }

  .matrix-mobile-stepper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .stepper-step-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f2c59;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .stepper-chips-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
  }

  .stepper-chip-btn {
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
  }

  .stepper-chip-btn.active {
    border-color: #0284c7;
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
  }

  .stepper-variants-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .stepper-variant-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
  }

  .stepper-variant-info h5 {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.15rem;
  }

  .stepper-variant-prices {
    font-size: 0.84rem;
    color: #0369a1;
    font-weight: 700;
  }

  .stepper-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .stepper-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .stepper-qty-val {
    width: 32px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
  }
}

/* 6. Barra Inferior del Modal de Matriz (Botón Añadir Selección) */
.matrix-modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.matrix-summary-box {
  display: flex;
  flex-direction: column;
}

.matrix-summary-count {
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 600;
}

.matrix-summary-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f2c59;
}

.btn-matrix-add-all {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
}

.btn-matrix-add-all:hover:not(:disabled) {
  background: #0369a1;
  transform: translateY(-1px);
}

.btn-matrix-add-all:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

/* 7. Toast Notifications */
.toast-container {
  position: fixed;
  top: 85px;
  right: 20px;
  z-index: 100005;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-message {
  background: #0f2c59;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: auto;
  animation: toastSlideIn 0.25s ease-out;
  border-left: 4px solid #10b981;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 8. Panel Lateral de Carrito (Cart Drawer) */
.cart-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99998;
  display: none;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  z-index: 99999;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2c59;
}

.cart-drawer-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-drawer-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  gap: 0.65rem;
}

.cart-item-details h5 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.cart-item-variant {
  font-size: 0.78rem;
  color: #0284c7;
  font-weight: 700;
  margin-top: 0.15rem;
}

.cart-item-sku {
  font-size: 0.74rem;
  color: #64748b;
  font-family: monospace;
}

.cart-item-price-box {
  text-align: right;
  flex-shrink: 0;
}

.cart-item-total {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f2c59;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.cart-fiscal-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.84rem;
}

.cart-fiscal-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  color: #475569;
}

.cart-fiscal-row.total-row {
  border-top: 1px dashed #cbd5e1;
  padding-top: 0.45rem;
  margin-top: 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0284c7;
}

.btn-drawer-checkout {
  width: 100%;
  background: #16a34a;
  color: #ffffff;
  border: none;
  padding: 0.85rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
  transition: all 0.2s;
}

.btn-drawer-checkout:hover {
  background: #15803d;
}

/* ==========================================================================
   ACCESIBILIDAD Y ERGONOMÍA TÁCTIL MÓVIL (WCAG 2.1 AAA - 44px TOUCH TARGETS)
   ========================================================================== */
button,
select,
.btn,
.sidebar-cat-pill,
.sidebar-subcat-pill,
.carousel-chip-btn,
.hero-ymm-btn,
.hero-ymm-select,
.qty-btn,
.btn-conflict,
.active-chip,
.dock-cat-item,
.drawer-cat-row,
.drawer-subcat-row {
  min-height: 44px;
}

/* Elementos pequeños o de cierre con padding táctil invisible */
.btn-clear-search,
.btn-clear-global-search,
.btn-clear-active-motor {
  min-height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   MODAL MATRICIAL 2D Y SELECTOR DE VARIANTES
   ========================================================================== */
.matrix-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.matrix-modal-dialog,
.matrix-modal-container {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
}

.btn-close-matrix-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: none;
  font-size: 1.5rem;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s;
}

.btn-close-matrix-modal:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Color Swatches / Material Selector */
.color-swatches-section {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.color-swatches-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f2c59;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.color-swatches-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.color-swatch-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  border-radius: 24px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f2c59 !important;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.color-swatch-chip:hover {
  border-color: #0284c7;
  color: #0284c7 !important;
  background: #f0f9ff;
}

.color-swatch-chip.active {
  background: #0f2c59 !important;
  color: #ffffff !important;
  border-color: #0f2c59;
  box-shadow: 0 4px 10px rgba(15, 44, 89, 0.25);
}

.color-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* Mobile Stepper 2-Step Layout */
.matrix-mobile-stepper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.stepper-step-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f2c59;
  margin-bottom: 0.6rem;
}

.stepper-chips-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.stepper-chip-btn {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f2c59;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stepper-chip-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.stepper-variants-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stepper-variant-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.stepper-variant-info h5 {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f2c59;
}

.stepper-variant-prices {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0284c7;
}

.stepper-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stepper-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f2c59;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stepper-qty-btn:active {
  transform: scale(0.95);
  background: #e2e8f0;
}

.stepper-qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #0f2c59;
}

/* Configuración Única de Tabla Matricial 2D (Desktop y Móvil) */
.matrix-table-wrapper {
  display: block !important;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.matrix-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: center;
}

.matrix-table th,
.matrix-table td {
  padding: 0.75rem 0.6rem;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
}

.matrix-table th {
  background: #f8fafc;
  color: #0f2c59;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Columna fija sticky a la izquierda para mejor navegación táctil en móvil */
.matrix-table .matrix-row-header {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #f1f5f9;
  color: #0f2c59;
  font-weight: 800;
  font-size: 0.88rem;
  text-align: center;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.matrix-table thead th.matrix-row-header {
  z-index: 6;
  background: #e2e8f0;
}

.matrix-cell-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 80px;
}

.matrix-price-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0284c7;
}

.matrix-price-igic {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.matrix-qty-input {
  width: 54px;
  height: 38px;
  text-align: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f2c59;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.matrix-qty-input.has-qty {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.matrix-cell-disabled {
  background: #f8fafc;
  color: #94a3b8;
  font-weight: 700;
}

.matrix-mobile-stepper {
  display: none !important;
}

@media (max-width: 767px) {

  .matrix-modal-dialog,
  .matrix-modal-container {
    padding: 0.85rem 0.5rem !important;
    max-height: 94vh !important;
    width: 98vw !important;
    border-radius: 12px !important;
  }

  .matrix-table {
    min-width: 360px;
  }

  .matrix-table th,
  .matrix-table td {
    padding: 0.45rem 0.3rem;
  }

  .matrix-table th {
    font-size: 0.74rem;
  }

  .matrix-table .matrix-row-header {
    font-size: 0.76rem;
    padding: 0.45rem 0.4rem;
  }

  .matrix-cell-content {
    min-width: 62px;
    gap: 0.2rem;
  }

  .matrix-price-val {
    font-size: 0.8rem;
  }

  .matrix-price-igic {
    font-size: 0.62rem;
  }

  .matrix-qty-input {
    width: 44px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
  }
}

.matrix-color-swatches {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.matrix-color-pill {
  padding: 0.5rem 1rem;
  border-radius: 30px;
  border: 2px solid #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.matrix-color-pill.active {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.matrix-grid-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.matrix-grid-table th,
.matrix-grid-table td {
  border: 1px solid #e2e8f0;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.85rem;
}

.matrix-grid-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.matrix-cell-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.matrix-cell-price {
  font-weight: 700;
  color: #0f172a;
}

.matrix-qty-input {
  width: 54px;
  height: 38px;
  text-align: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 700;
}

.matrix-footer-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 1rem;
}

.matrix-total-pill {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0284c7;
}

.card-variant-1d-select,
.product-variant-dropdown {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.85rem;
  background-color: #f8fafc;
  color: #0f2c59;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.product-variant-dropdown:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background-color: #ffffff;
}

.variant-chip-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 22px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.variant-chip-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
}

.variant-chip-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   VISOR MODAL DE CATÁLOGO PDF (PREMIUM NAÚTICO)
   ========================================================================== */

.pdf-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 99998;
  animation: fadeIn 0.25s ease-out;
}

.pdf-viewer-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 94vw;
  max-width: 1100px;
  height: 90vh;
  max-height: 850px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.pdf-modal-header {
  height: 60px;
  background: #0f172a;
  color: #ffffff;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.pdf-modal-title-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pdf-modal-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f8fafc;
}

.pdf-modal-page-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-pdf-action {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e293b;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-pdf-action:hover {
  background: #0284c7;
  color: #ffffff;
}

.btn-pdf-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e293b;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-pdf-close:hover {
  background: #ef4444;
  color: #ffffff;
}

.pdf-modal-body {
  flex: 1;
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
}

.pdf-modal-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1;
  pointer-events: none;
}

.pdf-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: relative;
  z-index: 2;
  background: transparent;
}

.btn-view-pdf-catalog {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.35rem;
  text-decoration: none;
}

.btn-view-pdf-catalog:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

/* =============================================================================
   PASTILLAS SOBRIAS Y PROFESIONALES DE STOCK (SIN EMOJIS)
   ============================================================================= */
.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  line-height: 1.2;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.stock-pill .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* En Stock (HIGH / MID) */
.stock-pill.in-stock {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.stock-pill.in-stock .status-dot {
  background: #22c55e;
}

/* Últimas Unidades (LOW) */
.stock-pill.low-stock {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.stock-pill.low-stock .status-dot {
  background: #f59e0b;
}

/* Disponible Bajo Pedido (NA) */
.stock-pill.on-demand {
  background: #f0f9ff;
  color: #075985;
  border: 1px solid #bae6fd;
}

.stock-pill.on-demand .status-dot {
  background: #0284c7;
}

/* =============================================================================
   MEJORAS VISUALES UI: POPOVER CATEGORÍAS, DRAWER MÓVIL Y CHIPS DE SUBCATEGORÍAS
   ============================================================================= */

/* 1. Tarjetas de Categoría en Grid (.cat-card) con Popover Flotante Fusionado */
.cat-card-wrapper {
  position: relative;
  width: 100%;
  height: 64px;
  z-index: 1;
}

.cat-card-wrapper:hover {
  z-index: 350;
}

.cat-card {
  height: 64px;
  max-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, border-radius 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
}

/* Fusión visual al hacer hover: esquinas inferiores se vuelven rectas para acoplar el popover */
.cat-card-wrapper:hover .cat-card,
.cat-card.popover-active {
  border-color: var(--cat-color, #0284c7);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Caja de icono protegida de 36px */
.cat-card .cat-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cat-color, #0284c7);
  color: #ffffff;
  flex-shrink: 0;
}

.cat-card .cat-badge svg {
  width: 18px;
  height: 18px;
}

.cat-card .cat-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  overflow: hidden;
}

/* Salto de línea en 2 líneas sin truncar la palabra sentina */
.cat-card .cat-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.cat-card .cat-count {
  display: none;
}

/* Indicador de flecha interactiva (Chevron) */
.cat-card .cat-chevron {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  margin-left: auto;
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.cat-card-wrapper:hover .cat-chevron,
.cat-card.popover-active .cat-chevron {
  transform: rotate(90deg);
  color: var(--cat-color, #0284c7);
}

/* Popover Flotante Fusionado directamente debajo sin esquinas superiores redondeadas */
.cat-subcats-popover {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 300;
  background: #ffffff;
  border: 1px solid var(--cat-color, #0284c7);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.14), 0 6px 12px -4px rgba(0, 0, 0, 0.08);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  max-height: 280px;
  overflow-y: auto;
}

.cat-card-wrapper:hover .cat-subcats-popover,
.cat-card-wrapper.popover-active .cat-subcats-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cat-subcats-popover .popover-header {
  display: none;
}

.cat-subcat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.81rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 2px;
}

.cat-subcat-link:hover {
  background: #f8fafc;
  color: var(--cat-color, #0284c7);
  font-weight: 600;
}

.cat-subcat-link .subcat-badge-count {
  font-size: 0.72rem;
  font-weight: 500;
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 7px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Estado activo para el filtro lateral de la izquierda (#category-filter-list) */
.sidebar-cat-pill.active {
  background: rgba(2, 132, 199, 0.08) !important;
  color: var(--cat-color, #0284c7) !important;
  font-weight: 700 !important;
  border-left: 3px solid var(--cat-color, #0284c7) !important;
}

.sidebar-cat-item.open .sidebar-subcategories-list {
  display: block !important;
}

.sidebar-cat-item.open .sidebar-cat-chevron {
  transform: rotate(90deg) !important;
  color: var(--cat-color, #0284c7) !important;
}

.sidebar-subcat-pill.active {
  background: var(--cat-color, #0284c7) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.sidebar-subcat-pill.active .sidebar-subcat-dot {
  background: #ffffff !important;
}

.sidebar-subcat-pill.active .sidebar-subcat-count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* 2. Menú Lateral Móvil Responsivo (#drawer-categories-container) */
.drawer-cat-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 2px;
}

.drawer-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  user-select: none;
}

.drawer-cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-cat-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cat-color, #0ea5e9);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.drawer-cat-badge svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  fill: none;
}

.drawer-cat-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.drawer-cat-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-cat-count {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 7px;
  border-radius: 10px;
}

.drawer-cat-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease;
}

.drawer-cat-item.accordion-open .drawer-cat-chevron {
  transform: rotate(180deg);
  color: #38bdf8;
}

.drawer-subcats-accordion {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  padding-left: 38px;
}

.drawer-cat-item.accordion-open .drawer-subcats-accordion {
  max-height: 320px;
  opacity: 1;
  padding-bottom: 8px;
}

.drawer-subcat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  min-height: 44px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.drawer-subcat-link:hover {
  color: #38bdf8;
}

/* 3. ÍNDICE DE SUBCATEGORÍAS - DESACTIVADO A PETICIÓN DE USUARIO */
.catalog-subcategories-bar {
  display: none !important;
}

/* AMPLIACIÓN DE ALTURA DE FILTROS DE CATEGORÍAS (#category-filter-list) PARA 25 FAMILIAS */
#category-filter-list {
  max-height: 720px !important;
}

.subcat-chip {
  scroll-snap-align: start;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.subcat-chip:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.subcat-chip.active {
  background-color: var(--cat-color, #0284c7);
  color: #ffffff;
  border-color: var(--cat-color, #0284c7);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.subcat-chip-count {
  font-size: 0.72rem;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
}

.subcat-chip.active .subcat-chip-count {
  background: rgba(255, 255, 255, 0.25);
}

/* =============================================================================
   ESTILOS LIMPIOS Y MINIMALISTAS PARA LA BARRA DE MARCAS (.brand-bar-clean)
   ============================================================================= */
.brand-bar-clean {
  width: 100%;
  max-width: 1440px;
  margin: 12px auto;
  padding: 0;
  box-sizing: border-box;
}

.brand-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 14px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Titulo lateral sutil */
.brand-bar-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #64748b;
  text-transform: uppercase;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Ventana de marcas con desvanecimiento lateral */
.brand-track-container {
  flex: 1 1 auto;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.brand-track-list {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  will-change: transform;
  animation: scrollContinuousBrands 32s linear infinite;
}

/* Pausa suave al pasar el raton */
.brand-bar-inner:hover .brand-track-list {
  animation-play-state: paused;
}

/* Elemento de marca individual sin marcos ni capsulas */
.brand-logo-item {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  flex: 0 0 auto;
  user-select: none;
  min-height: 32px;
}

.brand-logo-item img {
  height: 26px;
  max-width: 100px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Escala de grises suave en reposo */
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

/* Al pasar el raton: recupera color original y crece ligeramente */
.brand-logo-item:hover img,
.brand-logo-item.active img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

.brand-logo-item span {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.brand-logo-item:hover span,
.brand-logo-item.active span {
  color: #0284c7;
  transform: scale(1.05);
}

/* Boton de Todas (A-Z) a la derecha */
.brand-bar-btn-all {
  flex: 0 0 auto;
  background: none;
  border: none;
  border-left: 1px solid #e2e8f0;
  padding-left: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
  height: 100%;
  display: flex;
  align-items: center;
}

.brand-bar-btn-all:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* Animacion de desplazamiento horizontal continuo */
@keyframes scrollContinuousBrands {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Adaptacion para pantallas moviles */
@media (max-width: 768px) {
  .brand-bar-clean {
    margin: 8px auto;
  }

  .brand-bar-inner {
    height: 44px;
    padding: 0 10px;
    gap: 10px;
    border-radius: 6px;
  }

  .brand-bar-title {
    display: none;
  }

  .brand-logo-item img {
    height: 20px;
    max-width: 80px;
  }

  .brand-track-list {
    gap: 20px;
  }
}

/* ACCESIBILIDAD GENERAL - Superficie táctil mínima (38px global, 44px móvil) */
button:not(.btn-clear-search),
select,
.btn {
  min-height: 38px;
}

/* ACCESIBILIDAD MÓVIL WCAG 2.1 - Superficie táctil mínima (44x44px) */
@media (max-width: 768px) {

  button:not(.brand-card):not(.other-brand-tile):not(.other-brand-pill),
  .btn,
  .nav-link,
  .category-chip,
  .filter-checkbox-label,
  .pagination-link,
  .mobile-sort-option,
  .brand-logo-item {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ==========================================================================
     Ajuste de Zonas Táctiles para Filtros Laterales en Móvil (Mínimo 44px)
     ========================================================================== */
  .filter-group-item,
  .brand-filter-item,
  .category-filter-item,
  .sidebar-filter-label {
    min-height: 44px;
    /* Cumple el estándar de accesibilidad para dedos */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border-radius: 6px;
    transition: background-color 0.12s ease;
  }

  /* Feedback suave al pulsar con el dedo */
  .filter-group-item:active,
  .brand-filter-item:active,
  .category-filter-item:active {
    background-color: #f1f5f9;
  }

  /* Ampliación visual y física del Checkbox en móvil */
  .filter-group-item input[type="checkbox"],
  .brand-filter-checkbox,
  .category-filter-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
    accent-color: #0284c7;
    /* Azul corporativo náutico */
  }

  /* Texto del filtro legible y centrado con la casilla */
  .filter-item-name,
  .filter-label-text {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    flex: 1;
    line-height: 1.3;
  }

  /* Contador de piezas (badge) separado a la derecha */
  .filter-count-badge {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 12px;
  }
}

/* --------------------------------------------------------------------------
   VISTA DEDICADA DE PRODUCTOS DE MOTORIZACIÓN Y TARJETAS BLANCAS PREMIUM
   -------------------------------------------------------------------------- */
.motor-dedicated-section {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.motor-header-banner {
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.subsystem-tab-btn {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.subsystem-tab-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.subsystem-tab-btn.active {
  background: #0284c7;
  color: white;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

#motor-dedicated-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1rem !important;
}

@media (max-width: 992px) {
  #motor-dedicated-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 767px) {
  .motor-dedicated-container {
    padding: 1rem !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
  }
  #motor-dedicated-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  .motor-product-card, .skeleton-motor-card {
    padding: 0.6rem !important;
  }
  .motor-card-img-wrapper {
    height: 95px !important;
  }
  .motor-card-img-wrapper img {
    max-height: 85px !important;
  }
  .motor-card-title {
    font-size: 0.78rem !important;
    margin-bottom: 0.25rem !important;
  }
  .motor-card-price {
    font-size: 0.9rem !important;
  }
}

/* Skeleton Loaders para Motorización */
.skeleton-motor-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 0.85rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.skeleton-box {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

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

.motor-subsystem-tabs {
  display: flex !important;
  gap: 0.5rem !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  padding-bottom: 0.5rem !important;
}
.motor-subsystem-tabs::-webkit-scrollbar {
  display: none !important;
}
.motor-subtab {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.motor-product-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 0.85rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.motor-product-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  border-color: #38bdf8 !important;
}

.motor-card-img-wrapper {
  background: #ffffff !important;
  border-radius: 6px !important;
  height: 130px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  margin-bottom: 0.65rem !important;
  padding: 0.4rem !important;
  border: 1px solid #f1f5f9 !important;
}

.motor-card-img-wrapper img {
  max-height: 115px !important;
  max-width: 100% !important;
  object-fit: contain !important;
  transition: transform 0.3s ease !important;
}

.motor-product-card:hover .motor-card-img-wrapper img {
  transform: scale(1.04) !important;
}

.motor-card-title {
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  margin-bottom: 0.35rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.5em !important;
}

.motor-card-brand-badge {
  display: inline-block !important;
  background: #e0f2fe !important;
  color: #0369a1 !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  padding: 0.12rem 0.45rem !important;
  border-radius: 4px !important;
  margin-bottom: 0.4rem !important;
  letter-spacing: 0.03em !important;
}

.motor-card-ref {
  font-size: 0.74rem !important;
  color: #64748b !important;
  font-family: monospace !important;
  margin-bottom: 0.4rem !important;
}

.motor-card-price-row {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  margin-top: auto !important;
  padding-top: 0.6rem !important;
  border-top: 1px solid #f1f5f9 !important;
}

.motor-card-price {
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.motor-card-tax-note {
  font-size: 0.68rem !important;
  color: #166534 !important;
  font-weight: 600 !important;
}

.slider-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   MODAL DE DETALLES DE PRODUCTO NÁUTICO PREMIUM
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9998;
}

.product-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.product-detail-modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.product-detail-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.detail-sku-badge {
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.btn-detail-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.btn-detail-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.product-detail-modal-body {
  padding: 1.75rem;
}

.detail-modal-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .detail-modal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.detail-image-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.detail-image-box img {
  max-height: 230px;
  max-width: 100%;
  object-fit: contain;
}

.detail-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.detail-brand-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.detail-price-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-price-amount {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0284c7;
}

.detail-tax-note {
  font-size: 0.75rem;
  color: #166534;
  font-weight: 600;
}

.detail-attributes-section h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}

.detail-attributes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.detail-attr-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
}

.detail-attr-key {
  font-weight: 600;
  color: #64748b;
}

.detail-attr-val {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

.detail-add-cart-btn {
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.detail-add-cart-btn:hover {
  background: #0284c7;
}

/* ==========================================================================
   HERO HYBRID YMM SEARCH BAR - PREMIUM GLASSMORPHISM UI
   ========================================================================== */

.hero-hybrid-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin-top: 0.65rem;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-hybrid-bar:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 40px -6px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.2);
}

.hero-hybrid-select-group {
  position: relative;
  flex: 0 0 180px;
}

@media (max-width: 768px) {
  .hero-hybrid-select-group {
    flex: 1 1 100%;
  }
}

.hero-hybrid-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 9px;
  padding: 0.6rem 2rem 0.6rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%3C38bdf8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 14px;
}

.hero-hybrid-select:focus,
.hero-hybrid-select:hover {
  border-color: #38bdf8;
  background-color: rgba(30, 41, 59, 0.98);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.hero-hybrid-select option {
  background: #0f172a;
  color: #f8fafc;
}

.hero-hybrid-input-group {
  flex: 1 1 180px;
  position: relative;
}

.hero-hybrid-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 9px;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}

.hero-hybrid-input::placeholder {
  color: #94a3b8;
  font-size: 0.82rem;
}

.hero-hybrid-input:focus {
  border-color: #38bdf8;
  background-color: rgba(30, 41, 59, 0.98);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.hero-hybrid-shield-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  outline: none;
  flex: 0 0 auto;
}

.hero-hybrid-shield-btn.active {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.hero-hybrid-shield-btn.active:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #34d399;
}

.hero-hybrid-shield-btn:not(.active) {
  background: rgba(100, 116, 139, 0.25);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-hybrid-shield-btn:not(.active):hover {
  background: rgba(100, 116, 139, 0.35);
  color: #ffffff;
}

.hero-hybrid-shield-btn .shield-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: shieldPulse 2s infinite;
}

.hero-hybrid-shield-btn:not(.active) .shield-dot {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}

@keyframes shieldPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-hybrid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  flex: 0 0 auto;
}

.hero-hybrid-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.65);
}

.hero-hybrid-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   ESTILOS PREMIUM PARA EL ÍNDICE DE MARCAS NÁUTICAS (#brands-grid)
   ========================================================================== */
#brands-grid,
.brands-grid {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.brand-index-section {
  width: 100% !important;
}

.brand-section-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.brand-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2c59;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.25rem 0;
}

.brand-section-icon {
  font-size: 1.2rem;
}

.brand-section-subtitle {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.brands-featured-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)) !important;
  gap: 1.15rem !important;
  width: 100% !important;
  align-items: stretch !important;
}

@media (max-width: 768px) {
  #brands-grid,
  .brands-grid {
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
  }

  .brands-featured-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .brand-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.9rem 0.6rem 0.85rem 0.6rem !important;
    min-height: 145px !important;
    height: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .brand-card-logo-wrapper {
    height: 48px !important;
    flex: 0 0 auto !important;
    margin-bottom: 0.35rem !important;
  }

  .brand-card-logo {
    max-height: 38px !important;
    max-width: 90% !important;
  }

  .brand-card-name {
    font-size: 0.82rem !important;
    margin: 0.2rem 0 0.4rem 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .brand-card-action {
    font-size: 0.75rem !important;
    margin-top: auto !important;
    flex: 0 0 auto !important;
  }

  .other-brands-flex-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }

  .other-brand-tile {
    height: 38px !important;
    min-width: 75px !important;
    padding: 2px 8px !important;
  }
}

.brand-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 0.85rem 1rem 0.85rem;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: center;
  text-decoration: none;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  position: relative;
  height: 100% !important;
  min-height: 155px;
  box-sizing: border-box;
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.15);
  background: #ffffff;
}

.brand-card-logo-wrapper {
  height: 55px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  flex: 0 0 auto !important;
}

.brand-card-logo {
  max-height: 48px;
  max-width: 85%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05));
  transition: transform 0.2s ease;
}

.brand-card:hover .brand-card-logo {
  transform: scale(1.06);
}

.brand-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.25rem 0 0.5rem 0;
  word-break: break-word;
  line-height: 1.25;
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.brand-card-action {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0284c7;
  margin-top: auto !important;
  flex: 0 0 auto !important;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.brand-card:hover .brand-card-action {
  opacity: 1;
}

/* OTRAS MARCAS (SOLO TEXTO) */
.other-brands-flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  width: 100%;
}

.other-brand-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  outline: none;
}

.other-brand-pill:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.12);
}

.other-brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 85px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  outline: none;
}

.other-brand-tile:hover,
.other-brand-tile:active,
.other-brand-tile:focus {
  border-color: #0284c7;
  background-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.18);
}

.other-brand-tile-logo {
  max-height: 24px;
  max-width: 75px;
  width: auto;
  object-fit: contain;
  filter: none;
  transition: transform 0.2s ease;
}

.other-brand-tile:hover .other-brand-tile-logo {
  transform: scale(1.05);
}

.brand-card-action {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0284c7;
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.brand-card:hover .brand-card-action {
  opacity: 1;
  color: #0369a1;
}

@media (max-width: 640px) {
  #brands-grid,
  .brands-grid {
    flex-direction: column;
    width: 100%;
    gap: 1.75rem;
  }
  .brand-card {
    padding: 1rem 0.65rem;
    min-height: 125px;
  }
  .brand-card-logo-wrapper {
    height: 50px;
  }
  .brand-card-logo {
    max-height: 40px;
  }
  .brand-card-fallback-badge {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
  .brand-card-name {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER & RGPD COMPLIANCE STYLES
   ========================================================================== */
.cookie-banner-container {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 960px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.25rem 1.75rem;
  z-index: 99999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCookie {
  from { transform: translate(-50%, 100%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text strong {
  font-size: 1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
  color: #38bdf8;
}

.cookie-text p {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
  max-width: 620px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-cookie-accept {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-cookie-accept:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
}

.btn-cookie-reject {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

@media (max-width: 640px) {
  .cookie-banner-container {
    bottom: 0.75rem;
    padding: 1rem 1.25rem;
  }
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    justify-content: flex-end;
  }
}