/* Contenedor general */
#categoryTabs {
    border-bottom: none;
    overflow-x:auto;
    white-space: nowrap;
    flex-wrap: nowrap;
}

/* Ocultar barra de scroll en navegadores modernos */
#categoryTabs::-webkit-scrollbar {
    display: none;
}

#categoryTabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}
.nav-tabs {
    scrollbar-width: none; /* Firefox */
}

.nav-scroll-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Pestañas */
#categoryTabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    background-color: #f8f9fa;
    margin-right: 4px;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease-in-out;
    padding: 0.6rem 1rem;
    display: inline-block;
}

#categoryTabs .nav-link:hover {
    background-color: #e9ecef;
    color: #000;
}

#categoryTabs .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* Contenido de pestañas */
.tab-content {
    background: #fff;
    border-radius: 0 8px 8px 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Card */
.card {
    border-radius: 10px;
    align-items: center;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
}

/* Adaptación para pantallas chicas */
@media (max-width: 768px) {
    #categoryTabs .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
}

.row.g-3 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* 👈 esto fuerza a que las cards sean iguales */
}

.row.g-3 > [class*="col-"] {
    display: flex;
}

.row.g-3 .card {
    flex: 1 1 auto; /* que ocupe todo el alto disponible */
}

