:root {
  /* 🎨 Paleta corporativa */
  --colorPrincipal: #f5979a;
  --colorSecundario: #a9575a;

  /* 🎨 Navbar */
  --colorNavbar: #ffffff;
  --colorTextoNavbar: #000000;

  /* 🎨 Sidebar */
  --colorFondoPanel: #ffffff;
  --colorTextoPanel: #000000;

  /* 🎨 Fondo general */
  --colorFondoPantalla: #fefefe;

  /* 🎨 Avatar */
  --colorFondoAvatar: #ed0c0c;

  /* 💬 Textos generales */
  --colorTextoGeneral: #111111;

  /* 🏷️ Contenedores */
  --colorCardFondo: #ffffff;
  --colorCardTexto: #222222;

  /* 🔢 Configuraciones adicionales */
  --monedaPrincipal: "Bs";
  --fontPrincipal: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  /*Roboto ligth 300*/
}


/* ===========================
   NAVBAR
=========================== */
#navbarCatalogo {
  background: var(--colorNavbar, #fff) !important;
  color: var(--colorTextoNavbar, #000) !important;
  height: 60px !important;
  border-bottom: none !important;
}

#navbarCatalogo i,
#navbarCatalogo span,
#navbarCatalogo .navbarTituloCatalogo {
  color: var(--colorTextoNavbar, #000) !important;
}

.btn-navCatalogo i {
  color: var(--colorTextoNavbar, #000) !important;
}

.navbarLogoCatalogo {
  height: 50px !important;
  width: auto !important;
}


/* ===========================
   SIDEBAR
=========================== */
.sidebarCatalogo {
  position: fixed;
  top: 0;
  left: -260px;
  height: 100vh;
  width: 260px;
  background: var(--colorFondoPanel, #fff) !important;
  z-index: 11000;
  transition: left .3s ease;
  padding: 15px;
  overflow-y: auto;
}

.sidebarCatalogo.open {
  left: 0 !important;
}

.sidebarCatalogo,
.sidebarCatalogo * {
  color: var(--colorTextoPanel, #000) !important;
}

/* ===========================
   OVERLAY
=========================== */
.overlayCatalogo {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4) !important;
  display: none;
  z-index: 10000;
}

.sidebarCatalogo.open + #overlayCatalogo {
  display: block !important;
}

body {
  background: var(--colorFondoPantalla, #fefefe) !important;
  font-family: var(--fontPrincipal);
  font-weight: 300;
}


.contenidoCatalogo {
  min-height: calc(100vh - 60px);
}


/* ===========================
   LOADER
=========================== */
.loaderCatalogo {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.8) !important;
  display: none;
  z-index: 99999;
  justify-content: center;
  align-items: center;
}


/* ===========================
   ESTÉTICA GENERAL
=========================== */
.catalogoWrapper {
  background: var(--colorFondoPantalla);
  color: var(--colorTextoGeneral);
  padding-bottom: 100px;
  padding-top: 15px;
}

.tituloSeccionCatalogo {
  font-weight: 700;
  color: var(--colorPrincipal, #0A2540) !important;
  letter-spacing: -0.3px;
}


/* ===========================
   BANNERS
=========================== */
.bannerCatalogo {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  background: var(--colorCardFondo) !important;
}

.bannerImgCatalogo {
  height: 230px;
  object-fit: cover;
}

@media (min-width: 992px) {
  .bannerImgCatalogo {
    height: 350px;
  }
}


/* ===========================
   CARDS DE CATEGORÍAS
=========================== */
.cardCategoriaCatalogo {
  border: none !important;
  border-radius: 16px !important;
  overflow: hidden;
  background: var(--colorCardFondo, #ffffff) !important;
  color: var(--colorCardTexto, #222) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
  transition: transform .15s ease, box-shadow .2s ease;
  cursor: pointer;
}

.cardCategoriaCatalogo:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

.imgCategoriaCatalogo {
  height: auto !important;
  object-fit: cover !important;
}

@media (min-width: 992px) {
  .imgCategoriaCatalogo {
    height: auto !important;
  }
}

.nombreCategoriaCatalogo {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--colorCardTexto, #222) !important;
}


/* ===========================
   GRID RESPONSIVE
=========================== */
#gridCategoriasCatalogo > div,
#listaProductosDestacadosCatalogo > div {
  flex: 0 0 50%;
  max-width: 50%;
}

@media (min-width: 992px) {
  #gridCategoriasCatalogo > div,
  #listaProductosDestacadosCatalogo > div {
    flex: 0 0 25%;
    max-width: 25%;
  }
}


/* ============================================================
   📱 PANTALLAS PEQUEÑAS (TELÉFONOS 320–480px)
   ============================================================ */
@media (max-width: 480px) {

  /* Espacios laterales suaves */
  .catalogoWrapper,
  #contenidoCatalogo,
  #contenidoCatalogo .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Que el banner no quede aplastado */
  .bannerImgCatalogo {
    height: 180px !important;
  }

  /* Cards más cómodas */
  #gridCategoriasCatalogo > div,
  #listaProductosDestacadosCatalogo > div {
    padding-left: 5px;
    padding-right: 5px;
  }

  .cardCategoriaCatalogo {
    border-radius: 14px;
  }
}

/* ============================================================
   📲 PANTALLAS MEDIANAS (481–820px)
   ============================================================ */
@media (min-width: 481px) and (max-width: 820px) {

  .catalogoWrapper,
  #contenidoCatalogo,
  #contenidoCatalogo .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Un banner más alto para pantallas grandes */
  .bannerImgCatalogo {
    height: 240px !important;
  }

  /* Ajustar separación de las cards */
  #gridCategoriasCatalogo > div,
  #listaProductosDestacadosCatalogo > div {
    padding-left: 10px;
    padding-right: 10px;
  }

}

@media (min-width: 992px) {

  .catalogoWrapper,
  #contenidoCatalogo,
  #contenidoCatalogo .container {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 60px;
  }
}
/* ===========================================================
   BOTÓN FIJO DE VOLVER – CATÁLOGO PÚBLICO OSA INSUMOS
   =========================================================== */

.btnVolverCatalogoWrapper {
  position: fixed;
  top: 70px;                      /* Ajusta según tu navbar */
  right: 20px;
  z-index: 5000;
}

.btnVolverCatalogo {
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  white-space: nowrap;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;

  /* colores del catálogo */
  background-color: var(--colorPrincipal, #0A2540);
  color: #fff;
  border: none;
}

.btnVolverCatalogo:hover {
  background-color: var(--colorSecundario, #914b4b);
  color: #fff;
}


/* ======================================================
   ESTILO PARA TÍTULO DE CATEGORÍA – CATÁLOGO OSA
====================================================== */

.tituloCategoriaWrapper {
  margin-top: 30px;
  margin-bottom: 15px;
}

/* 🔵 Estilo base (mobile pequeño: ~375px) */
.tituloCategoriaCatalogo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--colorPrincipal, #0A2540);
}

.descripcionCategoriaCatalogo {
  display: block;
  margin-top: 3px;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.3;
}


/* 🟢 Móviles grandes (≥ 480px) */
@media (min-width: 480px) {
  .tituloCategoriaCatalogo {
    font-size: 1.6rem;
  }
  .descripcionCategoriaCatalogo {
    font-size: 0.9rem;
  }
}


/* 🟡 Tablets (≥ 768px) */
@media (min-width: 768px) {
  .tituloCategoriaCatalogo {
    font-size: 1.9rem;
  }
  .descripcionCategoriaCatalogo {
    font-size: 1rem;
  }
}


/* 🔴 Desktop (≥ 992px) */
@media (min-width: 992px) {
  .tituloCategoriaCatalogo {
    font-size: 2.2rem;
  }
  .descripcionCategoriaCatalogo {
    font-size: 1.05rem;
  }
}
/* ======================================================
   ESTILO PARA SUBTÍTULO (Subcategorías)
====================================================== */

.tituloSeccionCatalogo {
  font-weight: 600;
  color: var(--colorSecundario, #914b4b);
  margin-bottom: 6px;
  border-left: 4px solid var(--colorSecundario, #914b4b);
  padding-left: 10px;
}


/* 🔵 Mobile pequeño */
@media (max-width: 479px) {
  .tituloSeccionCatalogo {
    font-size: 1.1rem;
  }
}

/* 🟢 Mobile grande */
@media (min-width: 480px) and (max-width: 767px) {
  .tituloSeccionCatalogo {
    font-size: 1.2rem;
  }
}

/* 🟡 Tablet */
@media (min-width: 768px) {
  .tituloSeccionCatalogo {
    font-size: 1.35rem;
  }
}

/* 🔴 Desktop */
@media (min-width: 992px) {
  .tituloSeccionCatalogo {
    font-size: 1.5rem;
  }
}

/* ==========================================================
   ESTILO REAL PARA LAS CARDS DEL CATÁLOGO OSA INSUMOS
   (Compatible con tu HTML actual)
========================================================== */

.cardProductoCatalogo {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}


/* IMAGEN */
.cardProductoCatalogo .card-img-top {
  width: 100%;
  height: 180px;           /* altura base */
  object-fit: contain;
  background: #f8f8f8;
  padding: 8px;
  transition: transform .25s ease;
}


/* TITULO */
.cardProductoCatalogo .card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  min-height: 38px;        /* uniformiza alturas */
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* HOVER en escritorio */
@media (min-width: 992px) {
  .cardProductoCatalogo:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  }

  .cardProductoCatalogo:hover .card-img-top {
    transform: scale(1.05);
  }
}

@media (max-width: 375px) {
  .cardProductoCatalogo .card-img-top {
    height: 150px;
  }
  .cardProductoCatalogo .card-title {
    font-size: 0.75rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .cardProductoCatalogo .card-img-top {
    height: 170px;
  }
}

@media (min-width: 768px) {
  .cardProductoCatalogo .card-img-top {
    height: 190px;
  }
  .cardProductoCatalogo .card-title {
    font-size: 1rem;
  }
}

@media (min-width: 992px) {
  .cardProductoCatalogo .card-img-top {
    height: 210px;
  }
  .cardProductoCatalogo .card-title {
    font-size: 1.05rem;
  }
}

/* ----------------------------------------------------
   🟦 TÍTULO ELEGANTE DEL PRODUCTO – PÁGINA DETALLE
------------------------------------------------------*/

#pdNombreProducto {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem); /* Responsive: móvil → desktop */
    font-weight: 700;
    line-height: 1.25;
    color: #222;
    letter-spacing: -0.3px;

    /* Separación elegante */
    margin-bottom: 1.2rem;
    padding-bottom: 0.4rem;

    /* Línea sutil inferior */
    border-bottom: 1px solid rgba(0,0,0,0.08);

    /* Evita saltos bruscos si es muy largo */
    word-break: break-word;
}

/* Hover suave cuando el usuario selecciona el texto */
#pdNombreProducto::selection {
    background-color: #ffeed0;
}

/* ======================== */
/* 🎨 PANEL LATERAL PREMIUM */
/* ======================== */

#sidebarCatalogo {
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 60px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

/* ========================== */
/* 🔵 HEADER LOGUEADO         */
/* ========================== */
.sidebarHeaderPremium {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.sidebarAvatarPremium {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--colorFondoAvatar);
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 14px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28);
}

.tituloPanelPremium h5 {
  margin: 0;
  font-weight: 700;
  color: var(--colorTextoPanel);
}

.tituloPanelPremium small {
  opacity: .75;
  font-size: .85rem;
  color: var(--colorTextoPanel);
}

/* ========================== */
/* 🟡 HEADER INVITADO         */
/* ========================== */
.sidebarHeaderGuest {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
}

.sidebarHeaderGuest .avatarGuest {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dcdcdc;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  font-size: 1.3rem;
  color: #444;
}

/* ========================= */
/* 🟩 MENÚ PREMIUM           */
/* ========================= */

.sidebarMenuPremium {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.menuItemPremium i {
  font-size: 1.2rem;
  margin-right: 12px;
}

/* EFECTO PREMIUM */
.menuItemPremium:hover {
  background: rgba(255,255,255,0.18);
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.16);
}

/* =============================== */
/* 🔻 FOOTER DE VERSIÓN            */
/* =============================== */
.versionPanel {
  margin-top: auto;
  text-align: center;
  opacity: .75;
  font-size: .9rem;
  padding-top: 10px;
  color: var(--colorTextoPanel);
}

/* ================================
   ❌ BOTÓN "X" PARA CERRAR SIDEBAR
   SOLO EN MÓVILES
================================ */

.btnCerrarSidebarCatalogo {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--colorTextoPanel);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: background .2s ease;
}

.btnCerrarSidebarCatalogo:hover {
  background: rgba(0,0,0,0.08);
}

/* 🔵 En pantallas grandes NO aparece */
@media (min-width: 992px) {
  .btnCerrarSidebarCatalogo {
    display: none !important;
  }
}

/* ===============================
   🔘 SCROLL DE CATEGORÍAS
================================ */
.categoriasScrollWrapper {
  padding: 12px 10px;
  overflow-x: auto;
}

.categoriasScroll {
  display: flex;
  gap: 12px;
}

.categoriaItem {
  min-width: 96px;
  height: 96px;
  aspect-ratio: 1 / 1;          /* 🔥 fuerza círculo */
  border-radius: 50%;           /* 🔥 círculo real */
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
overflow: hidden;   /* 🔥 CLAVE ABSOLUTA */
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform .2s ease, box-shadow .2s ease;
}

.categoriaItem:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}


/* 🔥 IMAGEN PROTAGONISTA */
.categoriaItem img {
  width: 100%;
  height: 100%;
  object-fit: contain;             /* respeta iconos */
}

.categoriaTexto {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--colorCardTexto);
  text-align: center;
  line-height: 1.2;
  padding: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .categoriaItem {
    min-width: 90px;
    height: 90px;
  }
}
@media (min-width: 992px) {
  .categoriaItem {
    min-width: 130px;
    height: 130px;
  }
}
  .categoriaItem::after {
  content: attr(data-nombre);
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #555;
  opacity: 0;
  transition: opacity .2s ease;
}

.categoriaItem:hover::after {
  opacity: 1;
}

@media (min-width: 768px) {
  .categoriaTexto {
    font-size: 0.85rem;
  }
}

@media (min-width: 992px) {
  .categoriaTexto {
    font-size: 0.9rem;
  }
}

/* ===============================
   🧱 CARDS DE PRODUCTOS
================================ */
.productoCard {
  background: var(--colorCardFondo);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform .2s ease;
}

.productoCard:hover {
  transform: translateY(-4px);
}

.productoInfo {
  padding: 10px;
}

.productoNombre {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--colorCardTexto);
}

.productoDescripcion {
  font-size: 0.75rem;
  color: #666;
}



  

#paginacionCatalogo {
  margin-top: 50px !important;
  padding-top: 12px;
  text-align: center;
}

@media (min-width: 1251px) {
  
  #paginacionCatalogo {
    margin-top: 20px !important;
    padding-top: 5px;
    text-align: center;
  }
}

/* Thumbnails generales */
.pdThumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: all .2s ease;
}

.pdThumb:hover {
  transform: scale(1.05);
}

.pdThumb.activo {
  border-color: var(--colorPrincipal);
}

/* ============================================================
   📄 Paginación Catálogo — alineada al Theme Engine
   ============================================================ */

#paginacionCatalogo {
  margin-top: 32px; /* aire real respecto al grid/banner */
  padding-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}


/* ==============================
   PAGINACIÓN SIMPLE – CATÁLOGO
   ============================== */



/* Contenedor interno */
#paginacionCatalogo .paginacionSimple {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fontPrincipal);
  font-size: 20px;
  font-weight: 600;
}

/* Números */
#paginacionCatalogo .paginaItem {
  cursor: pointer;
  color: var(--colorTextoGeneral);
  opacity: 0.55;
  transition: all 0.2s ease;
  user-select: none;
}

/* Hover sutil */
#paginacionCatalogo .paginaItem:hover {
  opacity: 1;
  color: var(--colorSecundario);
}

/* Página activa */
#paginacionCatalogo .paginaItem.activo {
  font-weight: 900;
  color: var(--colorPrincipal);
  opacity: 1;
  cursor: default;
}

/* Separador "/" */
#paginacionCatalogo .paginaSeparador {
  color: var(--colorTextoGeneral);
  opacity: 0.35;
  margin: 0 2px;
  user-select: none;
}


/* ===============================
   🟪 Header Categoría
   =============================== */

.categoriaHeaderCatalogo {
  margin-bottom: 10px;
}

.categoriaHeaderCatalogo h3 {
  color: var(--colorTextoGeneral);
  margin-bottom: 4px;
}

.categoriaDescripcionCatalogo {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ===============================
   🟨 Subcategorías
   =============================== */

.subcategoriasCatalogoWrapper {
  margin-top: 10px;
}

.subcategoriaCardCatalogo {
  background-color: var(--colorCardFondo);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  height: 100%;
}

.subcategoriaCardCatalogo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* Contenedor imagen */
.subcategoriaImgWrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--colorFondoPantalla);
  display: flex;
  align-items: center;
  justify-content: center;
}

.subcategoriaImgWrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Texto fallback */
.subcategoriaTextoCatalogo {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--colorTextoGeneral);
  padding: 6px;
}

/* Nombre debajo */
.subcategoriaNombreCatalogo {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--colorTextoGeneral);
  margin-top: 6px;
}
/* ===============================
   🟧 Productos por Subcategoría
   =============================== */

.bloqueSubcategoriaProductos {
  margin-bottom: 32px;
}

.tituloSubcategoriaProductos {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--colorTextoGeneral);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--colorSecundario);
  display: inline-block;
}
/* ===============================
   🟥 Productos Directos
   =============================== */

.tituloProductosDirectos {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--colorTextoGeneral);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px dashed var(--colorSecundario);
  display: inline-block;
}
/* ===============================
   📱 Responsive Ajustes
   =============================== */

@media (max-width: 767px) {

  .subcategoriaImgWrapper {
    width: 72px;
    height: 72px;
  }

  .subcategoriaNombreCatalogo {
    font-size: 0.85rem;
  }

  .tituloSubcategoriaProductos,
  .tituloProductosDirectos {
    font-size: 1rem;
  }
}

@media (min-width: 992px) {

  .subcategoriaImgWrapper {
    width: 100px;
    height: 100px;
  }
}

/* =========================================
   🛒 CARRITO — ESTILOS GENERALES
   ========================================= */

.carritoItem {
  background-color: var(--colorCardFondo, #fff);
}

.carritoItem .fw-bold {
  color: var(--colorCardTexto, #000);
}

.carritoTotalWrapper {
  background-color: var(--colorFondoPanel);
}

#carritoTotal {
  color: var(--colorPrincipal);
}

button.btn-link.text-danger {
  padding-left: 0;
  text-decoration: none;
}

/* Cantidad */
.carritoItem .btn-outline-secondary {
  padding: 2px 8px;
  line-height: 1;
}

/* =========================================
   💬 BOTÓN WHATSAPP
   ========================================= */

button.btn-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

@media (max-width: 480px) {

  .carritoItem {
    padding: 12px;
  }

  .carritoItem .fw-bold {
    font-size: 15px;
  }

  .carritoTotalWrapper {
    font-size: 15px;
  }

  button.btn-success {
    font-size: 15px;
    padding: 12px;
  }

}

@media (min-width: 481px) and (max-width: 767px) {

  .carritoItem {
    padding: 14px;
  }

  .carritoItem .fw-bold {
    font-size: 16px;
  }

}

@media (min-width: 768px) and (max-width: 991px) {

  .carritoItem {
    padding: 16px;
  }

  #carritoTotal {
    font-size: 20px;
  }

}

@media (min-width: 992px) {

  .carritoItem {
    padding: 18px;
  }

  .carritoTotalWrapper {
    max-width: 520px;
    margin-left: auto;
  }

  button.btn-success {
    max-width: 520px;
    margin-left: auto;
  }

}
.subcategoriaTextoCardCatalogo {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
  cursor: pointer;
  background: #fff;
  transition: all 0.15s ease;
}

.subcategoriaTextoCardCatalogo:hover {
  background: #f5f5f5;
  border-color: #ccc;
}


/* ============================
   SIDEBAR BASE (NO COLOR)
   ============================ */
.sidebarCatalogo {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ============================
   HEADER MARCA
   ============================ */
.sidebarHeaderMarca {
  padding: 18px 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--colorPrincipal);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* ============================
   MENÚ
   ============================ */
.sidebarMenuPremium {
  padding: 12px 0;
  flex-grow: 1;
}

.menuItemPremium {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  color: var(--colorTextoGeneral);
  transition: all .2s ease;
}

.menuItemPremium i {
  font-size: 16px;
  color: var(--colorSecundario);
}

/* Hover femenino / limpio */
.menuItemPremium:hover {
  background-color: rgba(0,0,0,.04);
  color: var(--colorPrincipal);
}

.sidebarBrand {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sidebarBrand h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--colorPrincipal);
}

.sidebarBrand small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--colorTextoGeneral);
  opacity: 0.8;
}


/* ==============================
   DESCRIPCIÓN PRODUCTO – DETALLE
   ============================== */

.productoDescripcionCatalogo {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* Párrafos */
.productoDescripcionCatalogo p {
  margin-bottom: 0.6rem;
}

/* Negritas */
.productoDescripcionCatalogo strong {
  font-weight: 600;
}

/* Títulos desde Quill */
.productoDescripcionCatalogo h1,
.productoDescripcionCatalogo h2,
.productoDescripcionCatalogo h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

/* Listas */
.productoDescripcionCatalogo ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0.8rem;
}

.productoDescripcionCatalogo li {
  margin-bottom: 0.4rem;
}

/* Limpieza de basura */
.productoDescripcionCatalogo p:empty,
.productoDescripcionCatalogo br {
  display: none;
}

/* =========================================================
   🧭 SUB NAVBAR DE CATEGORÍAS (DESKTOP)
   Adaptado a Theme Engine OSA
   ========================================================= */

.subNavbarCategorias {
  position: fixed;
  top: 60px; /* altura real del navbar */
  left: 0;
  width: 100%;
  height: 52px;

  background: var(--colorNavbar);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 1500;

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;

  overflow-x: auto;
  white-space: nowrap;
}

.subNavbarCategorias::-webkit-scrollbar {
  display: none;
}

@media (min-width: 992px) {
  .subNavbarCategorias {
    --altoSubNavbarReal: 68px; /* 52 min-height + 8 + 8 padding */
  }
}

/* =========================================================
   📐 AJUSTE DE CONTENIDO SEGÚN HEADER
   ========================================================= */

/* 📱 Mobile: solo navbar */
@media (max-width: 991px) {
  .contenidoCatalogo {
    padding-top: 60px;
  }
}


/* =========================================================
   📱 SIDEBAR — SOLO EN MOBILE
   ========================================================= */

@media (min-width: 992px) {
  #sidebarCatalogo {
    left: -260px !important;
  }

  #overlayCatalogo {
    display: none !important;
  }
}

/* =========================================================
   🟢 ESTADO ACTIVO / SELECTED – CATEGORÍAS
   Compatible con JS actual (.menuItemPremium.activa)
   ========================================================= */

/* Hover desktop */
.subNavbarCategorias .menuItemPremium:hover {
  background: rgba(0,0,0,0.05);
  color: var(--colorPrincipal);
}

/* 🔥 ACTIVO (selected) */
.subNavbarCategorias .menuItemPremium.activa {
  color: var(--colorPrincipal);
}

/* Línea inferior elegante */
.subNavbarCategorias .menuItemPremium.activa::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 12%;
  width: 76%;
  height: 3px;

  background: var(--colorPrincipal);
}


/* ---------- MOBILE: Sidebar ---------- */
#sidebarCatalogo .menuItemPremium.activa {
  background: rgba(245, 151, 154, 0.18);
  color: var(--colorPrincipal);
  box-shadow: inset 4px 0 0 var(--colorPrincipal);
}

/* Ícono activo */
#sidebarCatalogo .menuItemPremium.activa i {
  color: var(--colorPrincipal);
}

/* =========================================================
   🧭 BRAND NAVBAR – OSA INSUMOS
   Responsive + Theme Engine
   ========================================================= */

/* Contenedor general */
.navbarBrandCatalogo {
  display: flex;
  align-items: center;
  font-family: var(--fontPrincipal);
}

/* Logo base */
.navbarLogoCatalogo {
  display: block;
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* Texto base */
.navbarTituloCatalogo {
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--colorTextoNavbar);
  white-space: nowrap;
}


/* =========================================================
   📱 CELULAR GAMA BAJA (≤ 480px)
   ========================================================= */
@media (max-width: 480px) {

  .navbarLogoCatalogo {
    height: 30px;
  }

  .navbarTituloCatalogo {
    font-size: 1rem;
  }

}


/* =========================================================
   📱 CELULAR GAMA ALTA (481–767px)
   ========================================================= */
@media (min-width: 481px) and (max-width: 767px) {

  .navbarLogoCatalogo {
    height: 34px;
  }

  .navbarTituloCatalogo {
    font-size: 1.05rem;
  }

}


/* =========================================================
   📲 TABLET (768–991px)
   ========================================================= */
@media (min-width: 768px) and (max-width: 991px) {

  .navbarLogoCatalogo {
    height: 40px;
  }

  .navbarTituloCatalogo {
    font-size: 1.2rem;
  }

}


/* =========================================================
   🖥️ DESKTOP (≥ 992px)
   ========================================================= */
@media (min-width: 992px) {

  /* Aire lateral solo en desktop */
  .navbarBrandCatalogo {
    padding-left: 20px;
  }

  .navbarLogoCatalogo {
    height: 46px;
  }

  .navbarTituloCatalogo {
    font-size: 1.35rem;
    letter-spacing: 0.4px;
  }
}

/* =========================================================
   🛒 BOTÓN CARRITO – NAVBAR OSA INSUMOS
   ========================================================= */

/* Botón base */
.btnCarritoCatalogo {
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: none;
  background: transparent;

  color: var(--colorTextoNavbar);
  transition: background .2s ease, box-shadow .2s ease;
}

/* Icono */
.btnCarritoCatalogo i {
  display: block;
}

/* Hover desktop */
@media (min-width: 992px) {
  .btnCarritoCatalogo:hover {
    background: rgba(0,0,0,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
}


/* ===============================
   🔴 BADGE CARRITO
   =============================== */

.badgeCarritoCatalogo {
  position: absolute;
  top: 2px;
  right: -4px;

  min-width: 20px;
  height: 20px;
  padding: 0 6px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;

  border-radius: 999px;
  background-color: #dc3545;
  color: #ffffff;

  box-shadow: 0 0 0 2px #ffffff;
  pointer-events: none;
}


/* =========================================================
   📱 CELULAR GAMA BAJA (≤ 480px)
   ========================================================= */
@media (max-width: 480px) {

  .btnCarritoCatalogo {
    width: 35px;
    height: 35px;
  }

  .btnCarritoCatalogo i {
    font-size: 1.4rem;
  }

}

@media (max-width: 480px) {
  .badgeCarritoCatalogo {
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    top: 3px;
    right: 3px;
  }
}


/* =========================================================
   📱 CELULAR GAMA ALTA (481–767px)
   ========================================================= */
@media (min-width: 481px) and (max-width: 767px) {

  .btnCarritoCatalogo {
    width: 40px;
    height: 40px;
  }

  .btnCarritoCatalogo i {
    font-size: 1.6rem;
  }

}

@media (min-width: 481px) and (max-width: 767px) {
  .badgeCarritoCatalogo {
    min-width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }
}

/* =========================================================
   📲 TABLET (768–991px)
   ========================================================= */
@media (min-width: 768px) and (max-width: 991px) {

  .btnCarritoCatalogo {
    width: 40px;
    height: 40px;
  }

  .btnCarritoCatalogo i {
    font-size: 1.4rem;
  }

}

@media (min-width: 768px) and (max-width: 991px) {
  .badgeCarritoCatalogo {
    min-width: 22px;
    height: 22px;
    font-size: 0.8rem;
  }
}

/* =========================================================
   🖥️ DESKTOP (≥ 992px)
   ========================================================= */
@media (min-width: 992px) {

  .btnCarritoCatalogo {
    width: 40px;
    height: 40px;
    margin-right: 16px; /* 👈 aire lateral desktop */
  }

  .btnCarritoCatalogo i {
    font-size: 1.6rem;
  }

}

@media (min-width: 992px) {
  .badgeCarritoCatalogo {
    min-width: 22px;
    height: 22px;
    font-size: 0.8rem;
  }
}

/* =========================================================
   🧭 SUB NAVBAR CATEGORÍAS — ANCHO CONTROLADO
   Solo Tablet + Desktop
   ========================================================= */

/* 📲 TABLET */
@media (min-width: 768px) and (max-width: 991px) {

  .subNavbarCategorias {
    width: 100%;
    margin: 0 auto;

    box-shadow: 0 2px 10px rgba(0,0,0,0.08);

    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 🖥️ DESKTOP */
@media (min-width: 992px) {

  .subNavbarCategorias {
    width: 100%;
    margin: 0 auto;


    box-shadow: 0 4px 14px rgba(0,0,0,0.10);

    padding-left: 20px;
    padding-right: 20px;
  }
}
/* =========================================================
   🧭 SUB NAVBAR CATEGORÍAS — WRAP INTELIGENTE
   Solo Tablet + Desktop
   ========================================================= */

/* 📲 TABLET + DESKTOP */
@media (min-width: 768px) {

  /* Cada item se comporta bien al envolver */
  .subNavbarCategorias li {
    list-style: none;
  }

  .subNavbarCategorias .menuItemPremium {
    white-space: nowrap; /* texto no se corta */
  }
}

@media (min-width: 992px) {

  .catalogoWrapper,
  #contenidoCatalogo,
  #contenidoCatalogo .container {
    padding-left: 24px;
    padding-right: 24px;

    /* 🔥 MAGIA REAL */
    padding-top: calc(var(--altoSubNavbarReal, 40px) - 10px) !important;

  }
}


@media (min-width: 992px) {
  .subNavbarCategorias {
    flex-wrap: nowrap;        /* 🔥 CLAVE */
    white-space: nowrap;
    overflow: visible;
    height: 52px;             /* 🔒 altura fija */
    align-items: center;
  }
}
/* =========================================================
   🟢 BOTÓN "HACER PEDIDO" – WHATSAPP (THEME ENGINE)
   ========================================================= */

.btnPedidoWhatsappCatalogo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 100%;
  padding: 14px 18px;

  font-family: var(--fontPrincipal);
  font-weight: 600;
  font-size: 1rem;

  color: #fff;
  background-color: var(--colorPrincipal);
  border: none;
  border-radius: 12px;

  cursor: pointer;
  transition: background-color .2s ease,
              transform .15s ease,
              box-shadow .2s ease;

  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* Hover elegante */
.btnPedidoWhatsappCatalogo:hover {
  background-color: var(--colorSecundario);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

/* Click */
.btnPedidoWhatsappCatalogo:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Icono WhatsApp */
.iconWhatsappPedido {
  width: 22px;
  height: 22px;
}

/* =========================================================
   📱 RESPONSIVE AJUSTES
   ========================================================= */

/* Celular gama baja */
@media (max-width: 480px) {
  .btnPedidoWhatsappCatalogo {
    font-size: 0.95rem;
    padding: 12px 14px;
  }

  .iconWhatsappPedido {
    width: 20px;
    height: 20px;
  }
}

/* Celular gama alta */
@media (min-width: 481px) and (max-width: 767px) {
  .btnPedidoWhatsappCatalogo {
    font-size: 1rem;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .btnPedidoWhatsappCatalogo {
    font-size: 1.05rem;
    padding: 15px 20px;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .btnPedidoWhatsappCatalogo {
    font-size: 1.05rem;
    padding: 16px 22px;
    max-width: 520px;       /* 👈 elegante, no monstruo */
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================================
   🔘 BOTÓN BASE OSA – THEME ENGINE
   ========================================================= */

.btnOsa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-weight: 600;
  font-size: 1rem;

  padding: 12px 18px;
  border-radius: 12px;
  border: none;

  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  background-color: var(--colorPrincipal);
  transition: background-color .2s ease,
              color .2s ease,
              transform .15s ease,
              box-shadow .2s ease;

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =========================================================
   📐 BOTÓN RESPONSIVE – ANCHO ADAPTATIVO
   ========================================================= */

.btnOsa--responsive {
  width: 100%;
}

/* Desktop */
@media (min-width: 992px) {
  .btnOsa--responsive {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================================
   🛒 LAYOUT CARRITO – RESPONSIVE REAL
   ========================================================= */

/* Mobile: se queda igual */
.carritoLayout {
  max-width: 100%;
}

/* Desktop */
@media (min-width: 992px) {
  .carritoLayout {
    max-width: 780px;     /* 👈 clave */
    margin-left: auto;
    margin-right: auto;
  }
}
/* ================================
   💳 OPCIONES CARRITO
   ================================ */

.carritoOpciones {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Desktop: dos columnas */
@media (min-width: 992px) {
  .carritoOpciones {
    flex-direction: row;
    gap: 20px;
  }

  .carritoCampo {
    flex: 1;
  }
}
/* ================================
   💰 TOTAL CARRITO
   ================================ */

.carritoTotalWrapper {
  background: var(--colorFondoPanel);
}

/* Desktop */
@media (min-width: 992px) {
  .carritoTotalWrapper {
    padding: 20px 24px;
    font-size: 1.1rem;
  }
}

/* =========================================================
   🟣 BOTÓN SUBCATEGORÍA – OSA STYLE
   ========================================================= */

.btnSubcategoriaOsa {
  width: 100%;
  padding: 14px 12px;

  border-radius: 999px; /* pill real */
  border: 1px solid rgba(0,0,0,0.08);

  background-color: var(--colorPrincipal);
  color: var(--colorTextoGeneral);

  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;

  cursor: pointer;
  transition: all .18s ease;

  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* Hover elegante */
@media (hover: hover) {
  .btnSubcategoriaOsa:hover {
    background-color: rgba(245, 151, 154, 0.12); /* colorPrincipal suave */
    color: var(--colorPrincipal);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  }
}

/* Active (click) */
.btnSubcategoriaOsa:active {
  transform: scale(0.97);
}


/* ===============================
   🧱 PRODUCT CARD – BASE
================================ */

.productoCard {
  background: var(--colorCardFondo);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
  font-family: var(--fontPrincipal);
}

.productoImgWrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.productoImgWrapper img {
  width: 100%;
  height: 100%;
  max-height: 250px;
  object-fit: cover;
}

.productoInfo {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.productoNombre {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--colorCardTexto);
  margin: 0;
  line-height: 1.2;
}

.productoDescripcion {
  font-size: 0.75rem;
  color: #666;
  margin: 0;
  line-height: 1.3;
}

/* ===============================
   📦 PRESENTACIONES
================================ */

.productoPresentaciones {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.productoPresentaciones li {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.presentacionNombre {
  color: #555;
}

.presentacionPrecio {
  font-weight: 600;
  color: var(--colorSecundario);
}

@media (max-width: 360px) {

  .productoNombre {
    font-size: 0.85rem;
  }

  .productoDescripcion {
    font-size: 0.7rem;
  }

  .productoPresentaciones li {
    font-size: 0.7rem;
  }

  .productoInfo {
    padding: 10px;
  }
}
@media (min-width: 361px) and (max-width: 575px) {

  .productoNombre {
    font-size: 0.95rem;
  }

  .productoDescripcion {
    font-size: 0.78rem;
  }

  .productoPresentaciones li {
    font-size: 0.75rem;
  }
}
@media (min-width: 576px) and (max-width: 991px) {

  .productoNombre {
    font-size: 1rem;
  }

  .productoDescripcion {
    font-size: 0.8rem;
  }

  .productoPresentaciones li {
    font-size: 0.8rem;
  }

  .productoInfo {
    padding: 14px;
  }
}
@media (min-width: 992px) {

  .productoCard {
    border-radius: 16px;
  }

  .productoNombre {
    font-size: 1.05rem;
  }

  .productoDescripcion {
    font-size: 0.8rem;
  }

  .productoPresentaciones li {
    font-size: 0.8rem;
  }
}
@media (hover: hover) and (pointer: fine) {

  .productoCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
  }

  .productoCard:hover .presentacionPrecio {
    color: var(--colorPrincipal);
  }
}


/* =====================================================
   🧱 PRODUCT CARD – BASE (MOBILE FIRST)
===================================================== */

.productoCard {
  background: var(--colorCardFondo);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  font-family: var(--fontPrincipal);
}

.productoImgWrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f4f4f4;
}

.productoInfo {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===============================
   🏷️ TEXTO – MOBILE PEQUEÑO
   (gama baja / celulares chicos)
================================ */

.productoNombre {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--colorCardTexto);
  line-height: 1.2;
  margin: 0;
}

.productoPresentaciones li {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
}

.presentacionNombre {
  color: #555;
}

.presentacionPrecio {
  font-weight: 600;
  color: var(--colorSecundario);
}

/* =====================================================
   📱 CELULARES GAMA MEDIA / ALTA
===================================================== */
@media (min-width: 400px) {

  .productoNombre {
    font-size: 0.95rem;
  }

  .productoPresentaciones li {
    font-size: 0.78rem;
  }

  .productoInfo {
    padding: 12px;
  }
}

/* =====================================================
   📲 TABLETS
===================================================== */
@media (min-width: 768px) {

  .productoNombre {
    font-size: 1.05rem;
  }

  .productoPresentaciones li {
    font-size: 0.85rem;
  }

  .productoInfo {
    padding: 14px;
  }
}

/* =====================================================
   🖥️ DESKTOP
===================================================== */
@media (min-width: 1200px) {

  .productoNombre {
    font-size: 1.1rem;
  }

  .productoPresentaciones li {
    font-size: 0.9rem;
  }
}

/* =====================================================
   ✨ HOVER SOLO EN DESKTOP
===================================================== */
@media (hover: hover) and (pointer: fine) {

  .productoCard {
    transition: transform .2s ease, box-shadow .2s ease;
  }

  .productoCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.15);
  }

  .productoCard:hover .presentacionPrecio {
    color: var(--colorPrincipal);
  }
}

.subcategoriasDesktop {
  display: none;
}

.navCategoriaItem.abierta > .subcategoriasDesktop {
  display: block;
}
