    
body{
    background-color: #f1f1f1;
    padding-top: 120px; /* Ajusta según el alto de tu navbar */
}    
    .producto {
        transition: opacity 0.4s ease, transform 0.4s ease;
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .producto.oculto {
        opacity: 0;
        transform: scale(0.95);
        pointer-events: none;
    }

    /* Esto evita que las columnas vacías generen espacio */
    .producto.escondido {
        display: none !important;
    }
        #lista-categorias {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    #lista-categorias::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
        #lista-categorias .list-group-item.active {
        /* background-color: #11b802; */ /* azul Bootstrap */
        color: #1e08e2;               /* texto blanco */
        border-radius: 0.375rem;   /* opcional, esquinas redondeadas */
    }

    /* Si prefieres verde, cambia el color a: #28a745 */
    /* background-color: #28a745; */

    .card-img-top {
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .imagen-ajustada {
    height: 200px;
    object-fit: cover;
    object-position: center;
    }

    .card { 
    transition: transform .3s ease, box-shadow .3s ease;
    }

    .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

    /* Asegura que el botón se vea bien */
    .btn-primary {
    background-color: #007bff;
    border: none;
    }
    .btn-primary:hover {
    background-color: #0056b3;
    }
    .ribbon {
    border-radius: 10px;
    position: absolute;
    top: 12px;
    left: -35px;
    background-color: #ff3b3b; /* rojo oferta */
    color: #fff;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
    }
    #lista-categorias i {
    font-size: 1.1rem;
    vertical-align: middle;
    color: #000000; /* Azul moderno, puedes cambiar a #28a745 si prefieres verde */
    }

    #lista-categorias .active i {
    color: #1e08e2; /* Ícono blanco cuando está activo */
    }

    /* ********** START BOTON BUSCAR ************* */
.search-container {
  position: relative;
  width: 220px;
}

.search-bar {
  border-radius: 50px;
  padding: 8px 35px 8px 15px;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.search-bar:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-icon:hover {
  color: #007bff;
}

@media (max-width: 576px) {
  .search-container {
    width: 160px;
  }
}
/* ********** END BOTÓN BUSCAR *********** */

.nav-link {
    position: relative;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Línea inferior animada */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #61ee82; /* azul elegante (puedes cambiarlo a #28a745 para verde) */
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Efecto al pasar el mouse */
.nav-link:hover {
    color: #007bff;
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown-menu .btn {
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown-menu .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ************* START BUSQUEDA *********** */
.search-container {
    position: relative;
    width: 250px; /* puedes ajustarlo */
}

.search-container input {
    padding-right: 40px; /* espacio para la lupa */
}

.search-icon-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
}

.search-icon-btn:hover {
    color: #0d6efd; /* azul Bootstrap */
}
/* ********************************************* */

#productos {
  justify-content: center !important;
}
.navbar-nav .nav-link.active {
    border-bottom: 3px solid #28a745; /* verde */
    border-radius: 0;
}
/* **************  WHATSAPP BOTON FLOTANTE  **************** */
    .whatsapp-float {
        position: fixed;
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        background-color: #bebebe;
        color: #fff;
        border-radius: 50%;
        text-align: center;
        font-size: 30px;
        box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
        z-index: 1000;
        transition: all 0.3s ease;
    }

    .whatsapp-float:hover {
        transform: scale(1.1);
        background-color: #1ebe5b;
    }

    .whatsapp-icon {
        width: 100%;
        height: 100%;
        padding: 10px;
    }
