/* ============================================================================== */
/* BANNER */

/* .banner {
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0;
  background-color: #344488;
}

.banner .textoBanner {
  position: absolute;
  font-family: 'Ubuntu Condensed', sans-serif;
}

.banner .textoDer {
  top: 50px;
  right: 50px;
  text-align: right;
}

.banner .textoIzq {
  top: 50px;
  left: 50px;
  text-align: left;
}

.banner .textoCentro {
  top: 50px;
  left: 50px;
  width: 800px;
  margin-left: -400px;
  text-align: center;
}

.textoBanner h1{
  font-size: 35px;
  line-height: 25px;
}

.textoBanner h2{
  font-size: 30px;
  line-height: 25px;
}

.textoBanner h3{
  font-size: 24px;
  line-height: 25px;
}

.contenedorGeneral {
  background-color: violet;
  background-color: #f0f0f0;
} */

/* BARRA DE PRODUCTOS */
.barraProductos {
  background-color: rgb(221, 221, 221);
}

.barraProductos .organizarProductos {
  margin-left: 5px;
}

/* VITRINA DE PRODUCTOS */
.productos {
  background-color: #f0f0f0;
  padding-top: 20px;
}

/* CONTENEDOR UNIFICADO DE CATÁLOGO */
.envoltura-catalogos {
  /* background: white; */
  padding: 20px;
  /* border-radius: 10px; */
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* STICKY SIDEBAR */
@media (min-width: 992px) {
  .sticky-sidebar {
    position: sticky;
    top: 20px;
    z-index: 10;
  }
}

/* CHECKBOXES PERSONALIZADOS */
.custom-filter-checkbox {
  display: flex;
  align-items: center;
  padding: 6px 0;
  cursor: pointer;
  font-size: 13px;
  color: #777;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.custom-filter-checkbox:hover {
  color: #333;
  padding-left: 3px;
}

.custom-filter-checkbox .checkbox-box {
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #fff;
  flex-shrink: 0;
}

.custom-filter-checkbox:hover .checkbox-box {
  border-color: #888;
}

.custom-filter-checkbox.active {
  color: #333;
  font-weight: bold;
}

.custom-filter-checkbox.active .checkbox-box {
  border-color: #333;
  background-color: #333;
  color: #fff;
}

.custom-filter-checkbox .checkbox-box i {
  font-size: 9px;
  display: none;
}

.custom-filter-checkbox.active .checkbox-box i {
  display: block;
}

/* ENCABEZADOS DE ACORDEÓN */
.filter-header-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: #555;
  margin-top: 10px;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.filter-header-toggle:hover,
.filter-header-toggle:focus {
  color: #111;
  text-decoration: none;
}

.filter-header-toggle i.fa-chevron-down {
  transition: transform 0.3s ease;
  font-size: 10px;
  color: #888;
}

.filter-header-toggle[aria-expanded="true"] i.fa-chevron-down {
  transform: rotate(180deg);
}

/* PÍLDORAS DE FILTROS ACTIVOS */
.active-filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
  width: 100%;
  padding: 0 15px;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  background-color: #fff;
  color: #333;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #E2E4EB;
  transition: all 0.2s ease;
  text-decoration: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.active-filter-pill:hover {
  background-color: #fcfcfc;
  border-color: #c5c5c5;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.active-filter-pill span.filter-label {
  color: #888;
  font-weight: 400;
  margin-right: 4px;
}

.active-filter-pill i.fa-times {
  margin-left: 8px;
  font-size: 11px;
  color: #aaa;
  transition: color 0.2s ease;
}

.active-filter-pill:hover i.fa-times {
  color: #d9534f;
}

/* AJUSTE DE COLUMNAS PERSONALIZADO (15% SIDEBAR / 80% RESULTADOS) */
@media (min-width: 992px) {
  .productos .col-md-2 {
    width: 15% !important;
    padding-right: 15px;
  }

  .productos .col-md-10 {
    width: 80% !important;
    padding-left: 15px;
  }
}

.productos ul li.liGrid0 {
  display: block;
  float: left;
  width: 22% !important;
  /* Ajuste óptimo para que quepan 4 productos con márgenes de 15px */
  background-color: white;
  border: 1px solid #E2E4EB;
  border-radius: 5px;
  margin-left: 15px;
  margin-right: 15px;
  margin-top: 0px;
  margin-bottom: 15px;
  padding: 30px;
  position: relative;
  height: 580px;
  text-align: center;
  transition: all 0.3s ease;
}

.productos ul li.liGrid0:hover {
  border: 1px solid #c5c5c5;
  box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, 0.35);
  border-radius: 7px;
  z-index: 5;
}

.productos ul li figure.figureGrid0 {
  overflow: hidden;
  margin: 0;
  width: auto;
  height: 272px;
  border-radius: 3px;
  position: relative;
}

.productos ul li figure.figureGridNuevoDisenio {
  overflow: hidden;
  margin: 0;
  width: auto;
  height: 460px;
  border-radius: 3px;
}

.productos ul li figure.figureGrid0 img.imgCuota,
.productos ul li figure.figureGrid0 img.imgAvisoStock,
.productos ul li figure.figureGrid0 img.imgEnvioGratis {
  position: absolute;
  background-color: transparent;
}

.productos ul li figure.figureGrid0 img.imgCuota {
  top: 48%;
  right: 3%;
  width: 23%;
}

.productos ul li figure.figureGrid0 img.imgAvisoStock {
  top: 48%;
  left: 3%;
  width: 30%;
}

.productos ul li figure.figureGrid0 img.imgEnvioGratis {
  top: 1.5%;
  left: 2%;
  width: 23%;
  z-index: 999;
}

.productos ul li p.lineaClasificacion {
  position: absolute;
  top: 1%;
  right: 1%;
  color: #777;
  font-size: x-small;
  cursor: default;
  background-color: transparent;
  z-index: 10;
}

.productos ul li p.lineaClasificacion:hover {
  right: 4%;
  transform: scale(1.3);
}

.productos ul li.liGrid0NuevoDisenio {
  background-color: white;
  border: 1px solid #E2E4EB;
  border-radius: 5px;
  margin: 16px;
  padding: 0;
  position: relative;
  height: 446px;
}

.productos ul li div.informacionCartilla {
  position: absolute;
  bottom: 20px;
  height: 230px;
  width: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.productos ul li div.informacionCartilla div.cadenaDescripcion {
  height: 60px;
  padding: 0 10px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.productos ul li div.informacionCartilla div.cadenaDescripcion h4 a {
  color: black;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  font-weight: 300;
}

.productos ul li div.informacionCartilla p.productos-php {
  margin-top: auto !important;
  margin-bottom: 4px !important;
  font-size: 13px;
  color: #666;
}

.productos ul li div.informacionCartilla div.ultimoParrafo {
  position: relative;
  width: 100%;
  text-align: center;
  margin: 4px 0;
}

.productos ul li div.informacionCartilla div.ultimoParrafo p.cadenaCuotas {
  color: #344488;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  margin-top: 6px;
  line-height: 1;
}

.productos ul li div.informacionCartilla div.ultimoParrafo p.montoCuotas {
  color: #344488;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin-top: 0;
}

.productos ul li div.informacionCartilla div.cadenaPrecioAlFinal {
  position: relative;
  width: 100%;
  margin-top: 4px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* RESPONSIVO */
@media (max-width: 991px) {
  .productos ul li.liGrid0 {
    width: 50% !important;
    height: auto;
    padding: 15px;
    /* background-color: yellow; */
  }

  #productos-contenedor {
    width: 95% !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 0px !important;
    /* background-color: #344488; */
  }

  .contenedor-alineado {
    width: 98% !important;
    padding: 0px !important;
    /* background-color: #d9534f; */
  }

  .migasDePan {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .productos ul li.liGrid0 {
    width: 100% !important;
    float: none;
    margin: 10px auto;
  }
}

/* ========================================== */
/* FILTROS RESPONSIVOS MÓVILES (DRAWER IZQ)   */
/* ========================================== */
@media (max-width: 767px) {
  .contenedor-filtros-responsivo {
    position: fixed;
    top: 0;
    left: 0;
    width: 310px;
    max-width: 60%;
    height: 100vh;
    z-index: 1050;
    background: #ffffff;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Scroll táctil inercial ultra-fluido */
    padding: 0;
    margin: 0 !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .contenedor-filtros-responsivo.abierto {
    transform: translateX(0);
  }

  .contenedor-filtros-responsivo .panel {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Backdrop oscuro semi-translúcido */
  .filtro-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  /* Blindaje de limpieza de floats */
  ul.grid0 {
    clear: both !important;
  }
}

/* ============================================================================== */
/* TARJETAS DE PRODUCTOS RESPONSIVAS PREMIUM (SINFÍN DE SOLAPAMIENTOS)             */
/* ============================================================================== */
@media (max-width: 991px) {
  .envoltura-catalogos {
    width: 95% !important;
    margin: 0 auto !important;
    padding: 0px !important;
  }

  /* Forzar ancho completo en móviles, y dos columnas en tablets si fuese necesario */
  .productos ul li.liGrid0 {
    width: 95% !important;
    float: none !important;
    margin: 20px auto !important;
    height: auto !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background-color: #ffffff !important;
    border: 1px solid #E2E4EB !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    text-align: center !important;
    position: relative !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  .productos ul li.liGrid0:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
  }

  /* Contenedor de la imagen (Figure) */
  .productos ul li figure.figureGrid0 {
    height: auto !important;
    min-height: 200px !important;
    max-height: 280px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    margin: 0 0 15px 0 !important;
    overflow: visible !important;
    /* Permitir que las píldoras flotantes se vean perfectas */
  }

  /* Imagen principal del celular/producto */
  .productos ul li figure.figureGrid0 img.img-responsive {
    max-height: 220px !important;
    width: 90% !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* Píldoras de cuotas y promos posicionadas quirúrgicamente sobre la imagen */
  .productos ul li figure.figureGrid0 img.imgCuota {
    position: absolute !important;
    top: auto !important;
    bottom: 5px !important;
    right: 5px !important;
    width: 70px !important;
    height: auto !important;
    z-index: 5 !important;
    background-color: transparent !important;
  }

  .productos ul li figure.figureGrid0 img.imgAvisoStock {
    position: absolute !important;
    top: auto !important;
    bottom: 5px !important;
    left: 5px !important;
    width: 80px !important;
    height: auto !important;
    z-index: 5 !important;
    background-color: transparent !important;
  }

  .productos ul li figure.figureGrid0 img.imgEnvioGratis {
    position: absolute !important;
    top: 5px !important;
    left: 5px !important;
    width: 65px !important;
    height: auto !important;
    z-index: 5 !important;
    background-color: transparent !important;
  }

  /* Categoría/Clasificación en la esquina superior */
  .productos ul li p.lineaClasificacion {
    position: absolute !important;
    top: 12px !important;
    right: 15px !important;
    margin: 0 !important;
    font-size: 10px !important;
    color: #888 !important;
    background: transparent !important;
    z-index: 10 !important;
  }

  /* Contenedor de Información (Restablecido a flujo vertical normal) */
  .productos ul li div.informacionCartilla {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    padding: 0 !important;
    margin-top: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Título de la marca */
  .productos ul li div.informacionCartilla small {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #888 !important;
    margin-bottom: 6px !important;
    text-transform: capitalize !important;
  }

  /* Título/Descripción del producto */
  .productos ul li div.informacionCartilla div.cadenaDescripcion {
    height: auto !important;
    min-height: 50px !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    /* Disponer en fila vertical (marca arriba, título abajo) */
    justify-content: center !important;
    align-items: center !important;
  }

  /* Estilos específicos de la Marca en móvil */
  .productos ul li div.informacionCartilla div.cadenaDescripcion h5.text-muted {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #888 !important;
    display: block !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  .productos ul li div.informacionCartilla div.cadenaDescripcion h4 {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }

  .productos ul li div.informacionCartilla div.cadenaDescripcion h4 a {
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #2c3b75 !important;
    font-family: 'Open Sans', sans-serif !important;
    text-decoration: none !important;
  }

  /* Sección de Precios y Cuotas (último parrafo) */
  .productos ul li div.informacionCartilla div.ultimoParrafo {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 10px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Texto 'Precio Regular $ xxx' */
  .productos ul li div.informacionCartilla div.ultimoParrafo p:first-of-type {
    font-size: 13px !important;
    color: #666 !important;
    margin: 0 0 6px 0 !important;
  }

  /* Texto 'X cuotas sin interés' en azul */
  .productos ul li div.informacionCartilla div.ultimoParrafo p.cadenaCuotas {
    color: #344488 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin: 4px 0 !important;
  }

  /* Monto de las Cuotas (Precio Grande) */
  .productos ul li div.informacionCartilla div.ultimoParrafo p.montoCuotas {
    color: #344488 !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1 !important;
  }

  /* Fila final de Precios de Un Pago y Descuento (cadenaPrecioAlFinal) */
  .productos ul li div.informacionCartilla div.cadenaPrecioAlFinal {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    left: auto !important;
    bottom: auto !important;
    top: auto !important;
    right: auto !important;
    margin-top: 5px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
  }

  /* Ajustes para etiquetas inline en la fila final */
  .productos ul li div.informacionCartilla div.cadenaPrecioAlFinal span,
  .productos ul li div.informacionCartilla div.cadenaPrecioAlFinal p {
    margin: 0 !important;
    display: inline-block !important;
  }
}